ProbeCPUs fallback that always determines that the CPU limits are not reached
(probeTime time.Duration, _ float64, abort chan struct{})
| 6 | |
| 7 | // ProbeCPUs fallback that always determines that the CPU limits are not reached |
| 8 | func ProbeCPUs(probeTime time.Duration, _ float64, abort chan struct{}) bool { |
| 9 | select { |
| 10 | case <-abort: |
| 11 | return false |
| 12 | case <-time.After(probeTime): |
| 13 | return true |
| 14 | } |
| 15 | } |
no outgoing calls
no test coverage detected