Dashboard: allow negative temps to show

This commit is contained in:
bergware
2023-12-09 15:04:15 +01:00
parent 030f79e69e
commit 20db70bc3a

View File

@@ -176,7 +176,7 @@ function device_temp(&$disk, &$red, &$orange) {
} elseif (exceed($temp,$hot,$top)) {
$color = 'orange'; $orange++;
}
return (($spin && $temp>0) ? "<span class='$color-text'>".my_temp($temp)."</span>" : "*").($nvme ? my_power($dev) : "");
return ($spin ? "<span class='$color-text'>".my_temp($temp)."</span>" : "*").($nvme ? my_power($dev) : "");
}
function device_smart(&$disk, &$fail, &$smart) {
global $numbers,$saved;