summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doGui.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/doGui.go b/doGui.go
index 3bc8d29..a004f2a 100644
--- a/doGui.go
+++ b/doGui.go
@@ -80,6 +80,9 @@ func drawWindow(win *gadgets.BasicWindow) {
grid.NewButton("me.machines.ShowTable()", func() {
t := me.machines.NewTable("test 2")
t.AddHostname()
+ t.AddStringFunc("sMB", func(m *zoopb.Machine) string {
+ return fmt.Sprintf("%d mb", m.Memory/(1024*1024))
+ })
t.ShowTable()
})