Adjust temperature limits' comparison
This commit is contained in:
parent
0c2138ccf2
commit
6c32e78808
@ -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 \${index + 1}: <span style=\"\${tempStyle}\">\${tempVal}°C</span>\`;\n\
|
const tempStr = \`Drive \${index + 1}: <span style=\"\${tempStyle}\">\${tempVal}°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 \${index + 1}: <span style=\"\${tempStyle}\">\${tempVal}°C</span>\`;\n\
|
const tempStr = \`Drive \${index + 1}: <span style=\"\${tempStyle}\">\${tempVal}°C</span>\`;\n\
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user