Skip to content

Commit

Permalink
lower 55 sec system update check to 50 sec
Browse files Browse the repository at this point in the history
  • Loading branch information
henrygd committed Jul 24, 2024
1 parent 5e255f8 commit af4d513
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hub/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")))
Expand Down

0 comments on commit af4d513

Please sign in to comment.