Merge pull request #3957 from Asgabani/fix/temp-breach-boundary-inconsistency

fix(notifications): don't report a temperature breach exactly at the threshold
This commit is contained in:
Alexander Holliday authored and GitHub committed 2026-09-18 09:16:23 -07:00
commit da8b230cec
2 files changed
+17 -1

No files matched your search

@@ -259,7 +259,7 @@ export class NotificationMessageBuilder implements INotificationMessageBuilder {
const temps = Array.isArray(hardware.cpu.temperature) ? hardware.cpu.temperature : [hardware.cpu.temperature];
const maxTemp = Math.max(...temps.filter((t: number) => !isNaN(t)));
const threshold = monitor.tempAlertThreshold;
if (maxTemp >= threshold) {
if (maxTemp > threshold) {
breaches.push({
metric: "temp",
currentValue: maxTemp,