mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
add SetStatus method to Container
This commit is contained in:
@@ -62,11 +62,7 @@ func (cm *ContainerMap) Refresh() {
|
||||
removeIDs = append(removeIDs, id)
|
||||
continue
|
||||
}
|
||||
// start collector if necessary
|
||||
if states[id] == "running" && !c.collect.Running() {
|
||||
c.Collect()
|
||||
}
|
||||
c.widgets.SetStatus(states[id])
|
||||
c.SetState(states[id])
|
||||
}
|
||||
|
||||
// remove dead containers
|
||||
|
||||
Reference in New Issue
Block a user