mirror of
https://github.com/docker/cli.git
synced 2026-01-15 07:40:57 +03:00
Based on some feedback, when you have a container via the cli that you are monitoring for stats, if you stop the container it will stay in the display but report the last datapoint that was received. This PR changes the display to zero out the values for containers where an update has not been received within a specified duration, i.e. 2 seconds. This signals the user that the container has stopped as it reports cpu and memory usage of 0. Signed-off-by: Michael Crosby <crosbymichael@gmail.com> Upstream-commit: bbc38497b6f522b0a9c4e5e976abfd79692b8b5f Component: engine