mirror of
https://github.com/bcicen/ctop.git
synced 2025-11-15 07:25:49 +01:00
reset container metrics on reader stop
This commit is contained in:
@@ -67,6 +67,7 @@ func (c *Container) Read(stream chan metrics.Metrics) {
|
||||
c.Widgets.SetMetrics(metrics)
|
||||
}
|
||||
log.Infof("reader stopped for container: %s", c.Id)
|
||||
c.Metrics = metrics.NewMetrics()
|
||||
c.Widgets.Reset()
|
||||
}()
|
||||
log.Infof("reader started for container: %s", c.Id)
|
||||
|
||||
Reference in New Issue
Block a user