When systemUsage counter goes backward (common in unprivileged LXC containers), the previous code used the absolute value as systemDelta. This created an artificially small denominator, inflating CPU to ~100%. Now leaves systemDelta as 0 on counter reset, falling through to the time-based calculation which produces accurate results. Related to #770 |
||
|---|---|---|
| .. | ||
| agent.go | ||
| agent_integration_test.go | ||
| agent_internal_test.go | ||
| agent_log_test.go | ||
| swarm.go | ||
| system.go | ||
| version.go | ||