mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
move field header into CompactGrid, add Align() method
This commit is contained in:
@@ -131,11 +131,6 @@ func (cm *ContainerMap) UpdateLoop() {
|
||||
}
|
||||
}
|
||||
|
||||
// Return number of containers/rows
|
||||
func (cm *ContainerMap) Len() uint {
|
||||
return uint(len(cm.containers))
|
||||
}
|
||||
|
||||
// Get a single container, by ID
|
||||
func (cm *ContainerMap) Get(id string) (*Container, bool) {
|
||||
for _, c := range cm.containers {
|
||||
|
||||
Reference in New Issue
Block a user