From 6c32e78808a3517915dff5553944ba210bcb20c6 Mon Sep 17 00:00:00 2001 From: rmm Date: Fri, 26 Apr 2024 19:21:02 +0200 Subject: [PATCH] Adjust temperature limits' comparison --- pve-mod-gui-sensors.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pve-mod-gui-sensors.sh b/pve-mod-gui-sensors.sh index 83c871b..9a8a7fd 100644 --- a/pve-mod-gui-sensors.sh +++ b/pve-mod-gui-sensors.sh @@ -250,10 +250,10 @@ function install_mod { });\n\ if (!isNaN(tempVal)) {\n\ let tempStyle = '';\n\ - if (!isNaN(tempMax) && tempVal > tempMax) {\n\ + if (!isNaN(tempMax) && tempVal >= tempMax) {\n\ tempStyle = 'color: #FFC300; font-weight: bold;';\n\ }\n\ - if (!isNaN(tempCrit) && tempVal > tempCrit) {\n\ + if (!isNaN(tempCrit) && tempVal >= tempCrit) {\n\ tempStyle = 'color: red; font-weight: bold;';\n\ }\n\ let tempStr = '';\n\ @@ -318,10 +318,10 @@ function install_mod { });\n\ if (!isNaN(tempVal)) {\n\ let tempStyle = '';\n\ - if (!isNaN(tempMax) && tempVal > tempMax) {\n\ + if (!isNaN(tempMax) && tempVal >= tempMax) {\n\ tempStyle = 'color: #FFC300; font-weight: bold;';\n\ }\n\ - if (!isNaN(tempCrit) && tempVal > tempCrit) {\n\ + if (!isNaN(tempCrit) && tempVal >= tempCrit) {\n\ tempStyle = 'color: red; font-weight: bold;';\n\ }\n\ const tempStr = \`Drive \${index + 1}: \${tempVal}°C\`;\n\ @@ -375,10 +375,10 @@ function install_mod { });\n\ if (!isNaN(tempVal)) {\n\ let tempStyle = '';\n\ - if (!isNaN(tempMax) && tempVal > tempMax) {\n\ + if (!isNaN(tempMax) && tempVal >= tempMax) {\n\ tempStyle = 'color: #FFC300; font-weight: bold;';\n\ }\n\ - if (!isNaN(tempCrit) && tempVal > tempCrit) {\n\ + if (!isNaN(tempCrit) && tempVal >= tempCrit) {\n\ tempStyle = 'color: red; font-weight: bold;';\n\ }\n\ const tempStr = \`Drive \${index + 1}: \${tempVal}°C\`;\n\