mirror of
https://github.com/bcicen/ctop.git
synced 2025-11-07 19:55:40 +01:00
10
cursor.go
10
cursor.go
@@ -17,16 +17,6 @@ type GridCursor struct {
|
||||
|
||||
func (gc *GridCursor) Len() int { return len(gc.filtered) }
|
||||
|
||||
func (gc *GridCursor) MemoryUsage() int64 {
|
||||
var size int64
|
||||
size = 0
|
||||
for _, c := range gc.filtered {
|
||||
size += c.MemUsage
|
||||
}
|
||||
gc.Reset()
|
||||
return size
|
||||
}
|
||||
|
||||
func (gc *GridCursor) Selected() *container.Container {
|
||||
idx := gc.Idx()
|
||||
if idx < gc.Len() {
|
||||
|
||||
Reference in New Issue
Block a user