Merge pull request #16389 from HuKeping/stats-zero
Reset data of stats in docker cli when container stopped Upstream-commit: 41646cb4e318b025a5a5c627481e551c49f726e2 Component: engine
This commit is contained in:
@ -99,6 +99,11 @@ func (s *containerStats) Collect(cli *DockerCli, streamStats bool) {
|
||||
s.CPUPercentage = 0
|
||||
s.Memory = 0
|
||||
s.MemoryPercentage = 0
|
||||
s.MemoryLimit = 0
|
||||
s.NetworkRx = 0
|
||||
s.NetworkTx = 0
|
||||
s.BlockRead = 0
|
||||
s.BlockWrite = 0
|
||||
s.mu.Unlock()
|
||||
case err := <-u:
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user