From af4d5137d6d4a21c400eff7d6bcc96a8e2596f4e Mon Sep 17 00:00:00 2001 From: Henry Dollman Date: Tue, 23 Jul 2024 22:41:05 -0400 Subject: [PATCH] lower 55 sec system update check to 50 sec --- hub/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hub/main.go b/hub/main.go index f612c9a2..c811c14f 100644 --- a/hub/main.go +++ b/hub/main.go @@ -221,10 +221,10 @@ func updateSystems() { // app.Logger().Error("Failed to query systems") return } - fiftyFiveSecondsAgo := time.Now().UTC().Add(-55 * time.Second) + fiftySecondsAgo := time.Now().UTC().Add(-50 * time.Second) batchSize := len(records)/4 + 1 for i := 0; i < batchSize; i++ { - if records[i].Get("updated").(types.DateTime).Time().After(fiftyFiveSecondsAgo) { + if records[i].Get("updated").(types.DateTime).Time().After(fiftySecondsAgo) { break } // log.Println("updating", records[i].Get(("name")))