lower 55 sec system update check to 50 sec

This commit is contained in:
Henry Dollman
2024-07-23 22:41:05 -04:00
parent 5e255f8f69
commit af4d5137d6

View File

@@ -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")))