diff options
| author | Jeff Carr <[email protected]> | 2025-03-21 19:30:02 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-22 09:45:32 -0500 |
| commit | b5925dcdce2f91c23f522a6541f628a2be3e3ece (patch) | |
| tree | fd3d57fd698b34948ddfd2a0c402bb2d61927341 /windowZood.go | |
| parent | 687e97ab09980560baa45cd2f55ab9d01bbaa741 (diff) | |
uptime ignores unresponsive hosts
Diffstat (limited to 'windowZood.go')
| -rw-r--r-- | windowZood.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/windowZood.go b/windowZood.go index d90a662..a2931dd 100644 --- a/windowZood.go +++ b/windowZood.go @@ -123,7 +123,10 @@ func AddMachinesPB(tbox *gui.Node, pb *zoopb.Machines) *zoopb.MachinesTable { t.AddMemory() t.AddCpus() t.AddStringFunc("sMB", func(m *zoopb.Machine) string { - return fmt.Sprintf("%d mb", m.Memory/(1024*1024)) + if m.Memory/(1024*1024) > 10000 { + return fmt.Sprintf("%4d G", m.Memory/(1024*1024*1024)) + } + return fmt.Sprintf("%4d M", m.Memory/(1024*1024)) }) t.AddStringFunc("zood", func(m *zoopb.Machine) string { |
