From 9e2296452bd718ac3a6c0865734e0bd7d87a13fa Mon Sep 17 00:00:00 2001 From: henrygd Date: Tue, 24 Feb 2026 13:06:29 -0500 Subject: [PATCH] fix: compute bandwidth alerts from byte-per-second source (#1770) Use Info.BandwidthBytes converted to MB/s with float division so bandwidth alert checks are based on current data without integer truncation near thresholds. --- internal/alerts/alerts_system.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/alerts/alerts_system.go b/internal/alerts/alerts_system.go index 63ae5d1c..817222dc 100644 --- a/internal/alerts/alerts_system.go +++ b/internal/alerts/alerts_system.go @@ -38,7 +38,7 @@ func (am *AlertManager) HandleSystemAlerts(systemRecord *core.Record, data *syst case "Memory": val = data.Info.MemPct case "Bandwidth": - val = data.Info.Bandwidth + val = float64(data.Info.BandwidthBytes) / (1024 * 1024) unit = " MB/s" case "Disk": maxUsedPct := data.Info.DiskPct