summaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
Diffstat (limited to 'http.go')
-rw-r--r--http.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/http.go b/http.go
index 8eac404..8103989 100644
--- a/http.go
+++ b/http.go
@@ -86,7 +86,7 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
var bad int
for m := range me.machines.IterAll() {
count += 1
- if findVersion(m, "zood") != me.zood.version {
+ if m.FindVersion("zood") != me.zood.version {
if m.SinceLastUpdate() > 10*time.Minute {
// skip machines that have not been updated in the last 10 minutes
log.Info("ignoring old machine", m.Hostname)