diff options
| author | Jeff Carr <[email protected]> | 2025-03-12 15:10:49 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-12 15:34:07 -0500 |
| commit | 687e97ab09980560baa45cd2f55ab9d01bbaa741 (patch) | |
| tree | 6f732e5790ce3693555a7f3fff8a318c29ba93ad /doGui.go | |
| parent | 767380abd080682f2e13d8d41633c0f600b8f616 (diff) | |
Diffstat (limited to 'doGui.go')
| -rw-r--r-- | doGui.go | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -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) } } |
