temperature alerts

This commit is contained in:
Henry Dollman
2024-10-12 14:57:46 -04:00
parent 6cf6661f2e
commit 10d348c052
3 changed files with 40 additions and 18 deletions

View File

@@ -306,8 +306,8 @@ func (h *Hub) updateSystem(record *models.Record) {
h.app.Logger().Error("Failed to save record: ", "err", err.Error())
}
}
// system info alerts (todo: temp alerts, extra fs alerts)
h.am.HandleSystemInfoAlerts(record, systemData.Info)
// system info alerts (todo: extra fs alerts)
h.am.HandleSystemAlerts(record, systemData.Info, systemData.Stats.Temperatures)
}
// set system to specified status and save record