summaryrefslogtreecommitdiff
path: root/watchdog.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-04 02:25:46 -0600
committerJeff Carr <[email protected]>2024-12-04 02:25:46 -0600
commit1abcc862fe85f5a49cff41a3bd0ed891908dfca4 (patch)
tree564c28361654b8469228624b829c1ddc33f70b98 /watchdog.go
parent5d9eb5add6183320f42147cb5109e78fed63c348 (diff)
code is better because of autogenpbv0.0.14v0.0.13v0.0.12v0.0.11v0.0.10
Diffstat (limited to 'watchdog.go')
-rw-r--r--watchdog.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/watchdog.go b/watchdog.go
index 0609bb3..9cce396 100644
--- a/watchdog.go
+++ b/watchdog.go
@@ -41,11 +41,11 @@ func NewWatchdog() {
case t := <-me.dog.C:
// log.Info("zookeeper Watchdog() ticked", me.hostname, "Current time: ", t)
var counter int
- loop := me.machines.SortByName()
+ loop := me.machines.SortByHostname()
for loop.Scan() {
- m := loop.Machine()
+ m := loop.Next()
counter += 1
- zood := m.FindPackageByName("zood")
+ zood := m.Packages.FindByName("zood")
if zood == nil {
log.Info("machine", m.Hostname, "does not have zood installed")
} else {