mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
filter Containers in place
This commit is contained in:
@@ -66,6 +66,7 @@ func (cs *MockContainerSource) Get(id string) (*Container, bool) {
|
||||
// Return array of all containers, sorted by field
|
||||
func (cs *MockContainerSource) All() Containers {
|
||||
sort.Sort(cs.containers)
|
||||
cs.containers.Filter()
|
||||
return cs.containers
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user