mirror of
https://github.com/fankes/beszel.git
synced 2025-10-19 17:59:28 +08:00
lower 55 sec system update check to 50 sec
This commit is contained in:
@@ -221,10 +221,10 @@ func updateSystems() {
|
|||||||
// app.Logger().Error("Failed to query systems")
|
// app.Logger().Error("Failed to query systems")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
fiftyFiveSecondsAgo := time.Now().UTC().Add(-55 * time.Second)
|
fiftySecondsAgo := time.Now().UTC().Add(-50 * time.Second)
|
||||||
batchSize := len(records)/4 + 1
|
batchSize := len(records)/4 + 1
|
||||||
for i := 0; i < batchSize; i++ {
|
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
|
break
|
||||||
}
|
}
|
||||||
// log.Println("updating", records[i].Get(("name")))
|
// log.Println("updating", records[i].Get(("name")))
|
||||||
|
Reference in New Issue
Block a user