summaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-23 11:43:42 -0500
committerJeff Carr <[email protected]>2025-03-23 11:43:42 -0500
commit0a70f3bdde6bc1e00a73aca2eec055874cd39212 (patch)
treef25395aed77b757ecc894589b173bf2f751c1fa5 /http.go
parenta24c5f67e5d0ea90322f0ee9803c996bf3f34bcb (diff)
new FindVersion()v0.0.52
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)