diff options
| author | Jeff Carr <[email protected]> | 2025-02-20 03:13:53 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-20 03:23:14 -0600 |
| commit | e9f7b99846f6afa0ccdf0f026476b367dc7cfcec (patch) | |
| tree | bba35610505dece6ada0d27427be91199078739f /doGui.go | |
| parent | d667d8c26a677ec993758fe1bccf5f644b184257 (diff) | |
Diffstat (limited to 'doGui.go')
| -rw-r--r-- | doGui.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -80,9 +80,17 @@ func drawWindow(win *gadgets.BasicWindow) { grid.NewButton("me.machines.ShowTable()", func() { t := me.machines.NewTable("test 2") t.AddHostname() + t.AddMemory() + t.AddCpus() t.AddStringFunc("sMB", func(m *zoopb.Machine) string { return fmt.Sprintf("%d mb", m.Memory/(1024*1024)) }) + t.AddStringFunc("zood", func(m *zoopb.Machine) string { + return findVersion(m, "zood") + }) + t.AddTimeFunc("age", func(m *zoopb.Machine) time.Time { + return m.Laststamp.AsTime() + }) t.ShowTable() }) |
