Adjust temperature limits' comparison

This commit is contained in:
rmm 2024-04-26 19:21:02 +02:00
parent 0c2138ccf2
commit 6c32e78808

View File

@ -250,10 +250,10 @@ function install_mod {
});\n\ });\n\
if (!isNaN(tempVal)) {\n\ if (!isNaN(tempVal)) {\n\
let tempStyle = '';\n\ let tempStyle = '';\n\
if (!isNaN(tempMax) && tempVal > tempMax) {\n\ if (!isNaN(tempMax) && tempVal >= tempMax) {\n\
tempStyle = 'color: #FFC300; font-weight: bold;';\n\ tempStyle = 'color: #FFC300; font-weight: bold;';\n\
}\n\ }\n\
if (!isNaN(tempCrit) && tempVal > tempCrit) {\n\ if (!isNaN(tempCrit) && tempVal >= tempCrit) {\n\
tempStyle = 'color: red; font-weight: bold;';\n\ tempStyle = 'color: red; font-weight: bold;';\n\
}\n\ }\n\
let tempStr = '';\n\ let tempStr = '';\n\
@ -318,10 +318,10 @@ function install_mod {
});\n\ });\n\
if (!isNaN(tempVal)) {\n\ if (!isNaN(tempVal)) {\n\
let tempStyle = '';\n\ let tempStyle = '';\n\
if (!isNaN(tempMax) && tempVal > tempMax) {\n\ if (!isNaN(tempMax) && tempVal >= tempMax) {\n\
tempStyle = 'color: #FFC300; font-weight: bold;';\n\ tempStyle = 'color: #FFC300; font-weight: bold;';\n\
}\n\ }\n\
if (!isNaN(tempCrit) && tempVal > tempCrit) {\n\ if (!isNaN(tempCrit) && tempVal >= tempCrit) {\n\
tempStyle = 'color: red; font-weight: bold;';\n\ tempStyle = 'color: red; font-weight: bold;';\n\
}\n\ }\n\
const tempStr = \`Drive&nbsp;\${index + 1}:&nbsp;<span style=\"\${tempStyle}\">\${tempVal}&deg;C</span>\`;\n\ const tempStr = \`Drive&nbsp;\${index + 1}:&nbsp;<span style=\"\${tempStyle}\">\${tempVal}&deg;C</span>\`;\n\
@ -375,10 +375,10 @@ function install_mod {
});\n\ });\n\
if (!isNaN(tempVal)) {\n\ if (!isNaN(tempVal)) {\n\
let tempStyle = '';\n\ let tempStyle = '';\n\
if (!isNaN(tempMax) && tempVal > tempMax) {\n\ if (!isNaN(tempMax) && tempVal >= tempMax) {\n\
tempStyle = 'color: #FFC300; font-weight: bold;';\n\ tempStyle = 'color: #FFC300; font-weight: bold;';\n\
}\n\ }\n\
if (!isNaN(tempCrit) && tempVal > tempCrit) {\n\ if (!isNaN(tempCrit) && tempVal >= tempCrit) {\n\
tempStyle = 'color: red; font-weight: bold;';\n\ tempStyle = 'color: red; font-weight: bold;';\n\
}\n\ }\n\
const tempStr = \`Drive&nbsp;\${index + 1}:&nbsp;<span style=\"\${tempStyle}\">\${tempVal}&deg;C</span>\`;\n\ const tempStr = \`Drive&nbsp;\${index + 1}:&nbsp;<span style=\"\${tempStyle}\">\${tempVal}&deg;C</span>\`;\n\