diff --git a/plugins/system/cpu.go b/plugins/system/cpu.go index 2655a1ed6cf35..38e4ad6d7e48e 100644 --- a/plugins/system/cpu.go +++ b/plugins/system/cpu.go @@ -73,6 +73,7 @@ func (s *CPUStats) Gather(acc plugins.Accumulator) error { totalDelta := total - lastTotal if totalDelta < 0 { + s.lastStats = times return fmt.Errorf("Error: current total CPU time is less than previous total CPU time") }