summaryrefslogtreecommitdiff
path: root/doGui.go
diff options
context:
space:
mode:
Diffstat (limited to 'doGui.go')
-rw-r--r--doGui.go14
1 files changed, 12 insertions, 2 deletions
diff --git a/doGui.go b/doGui.go
index 70d9657..13e1a99 100644
--- a/doGui.go
+++ b/doGui.go
@@ -17,12 +17,21 @@ import (
// refresh the windows & tables the user has open
func refresh() {
- time.Sleep(90 * time.Second)
if argv.Verbose {
log.Info("zookeeper scan here")
}
if me.zood != nil {
me.zood.doMachinesUpgradeTable(me.machines)
+ all := me.machines.All()
+ for all.Scan() {
+ m := all.Next()
+ if me.hostname == m.Hostname {
+ // this is me! This is the version of zood that should be installed everywhere
+ v := findVersion(m, "zood")
+ me.zood.version = v
+ me.zood.versionL.SetText(v)
+ }
+ }
}
}
@@ -52,7 +61,7 @@ func doGui() {
me.zood.Toggle()
return
}
- makeZoodWin()
+ me.zood = makeZoodWin()
})
grid.NewButton("Cluster Events", func() {
@@ -62,6 +71,7 @@ func doGui() {
// sit here forever refreshing the GUI
for {
refresh()
+ time.Sleep(90 * time.Second)
}
}