mirror of
https://github.com/fankes/beszel.git
synced 2025-10-19 01:39:34 +08:00
add check for no records
This commit is contained in:
@@ -217,8 +217,8 @@ func updateSystems() {
|
||||
0, // offset
|
||||
)
|
||||
// log.Println("records", len(records))
|
||||
if err != nil {
|
||||
app.Logger().Error("Failed to query systems: ", "err", err.Error())
|
||||
if err != nil || len(records) == 0 {
|
||||
// app.Logger().Error("Failed to query systems")
|
||||
return
|
||||
}
|
||||
fiftyFiveSecondsAgo := time.Now().UTC().Add(-55 * time.Second)
|
||||
|
Reference in New Issue
Block a user