mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 23:26:45 +08:00
add interval refresh of running/killed containers in map
This commit is contained in:
@@ -33,6 +33,8 @@ func NewDocker(client *api.Client, id string) *Docker {
|
||||
}()
|
||||
|
||||
go func() {
|
||||
defer close(stats)
|
||||
defer close(c.stream)
|
||||
for s := range stats {
|
||||
c.ReadCPU(s)
|
||||
c.ReadMem(s)
|
||||
|
||||
Reference in New Issue
Block a user