diff --git a/pkg/util/debug/cpu.go b/pkg/util/debug/cpu.go index 5f7cf1bd66..4e3d88fc1b 100644 --- a/pkg/util/debug/cpu.go +++ b/pkg/util/debug/cpu.go @@ -8,7 +8,7 @@ import ( func CPUUsage(interval time.Duration) map[string]interface{} { cpuVal, err := cpu.Percent(interval, false) - if err != nil { + if err != nil || len(cpuVal) == 0 { return map[string]interface{}{} }