diff options
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() }) |
