mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 18:43:34 +00:00
vendor update for CSI 0.3.0
This commit is contained in:
2
vendor/k8s.io/kubernetes/test/images/resource-consumer/consume-cpu/consume_cpu.go
generated
vendored
2
vendor/k8s.io/kubernetes/test/images/resource-consumer/consume-cpu/consume_cpu.go
generated
vendored
@ -45,7 +45,7 @@ func main() {
|
||||
duration := time.Duration(*durationSec) * time.Second
|
||||
start := time.Now()
|
||||
first := systemstat.GetProcCPUSample()
|
||||
for time.Now().Sub(start) < duration {
|
||||
for time.Since(start) < duration {
|
||||
cpu := systemstat.GetProcCPUAverage(first, systemstat.GetProcCPUSample(), systemstat.GetUptime().Uptime)
|
||||
if cpu.TotalPct < millicoresPct {
|
||||
doSomething()
|
||||
|
Reference in New Issue
Block a user