parent
4cf47dcd0f
commit
00a6dbbe97
|
@ -73,6 +73,7 @@ func (s *CPUStats) Gather(acc plugins.Accumulator) error {
|
||||||
totalDelta := total - lastTotal
|
totalDelta := total - lastTotal
|
||||||
|
|
||||||
if totalDelta < 0 {
|
if totalDelta < 0 {
|
||||||
|
s.lastStats = times
|
||||||
return fmt.Errorf("Error: current total CPU time is less than previous total CPU time")
|
return fmt.Errorf("Error: current total CPU time is less than previous total CPU time")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue