mirror of
https://github.com/henrygd/beszel.git
synced 2025-12-17 02:36:17 +01:00
change disk alert to monitor usage of any disk, not only root
This commit is contained in:
@@ -315,7 +315,9 @@ func (h *Hub) updateSystem(record *models.Record) {
|
||||
}
|
||||
}
|
||||
// system info alerts (todo: extra fs alerts)
|
||||
h.am.HandleSystemAlerts(record, systemData.Info, systemData.Stats.Temperatures)
|
||||
if err := h.am.HandleSystemAlerts(record, systemData.Info, systemData.Stats.Temperatures, systemData.Stats.ExtraFs); err != nil {
|
||||
h.app.Logger().Error("System alerts error", "err", err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
// set system to specified status and save record
|
||||
|
||||
Reference in New Issue
Block a user