From 46726bfa2e0e2f82443cd4800a1d841e965954ce Mon Sep 17 00:00:00 2001 From: bergware Date: Sat, 9 Dec 2023 15:07:01 +0100 Subject: [PATCH] Dashboard: allow negative temps to show --- emhttp/plugins/dynamix/nchan/update_2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emhttp/plugins/dynamix/nchan/update_2 b/emhttp/plugins/dynamix/nchan/update_2 index e7915bb98..2ff62adbd 100755 --- a/emhttp/plugins/dynamix/nchan/update_2 +++ b/emhttp/plugins/dynamix/nchan/update_2 @@ -171,7 +171,7 @@ function device_temp(&$disk, &$red, &$orange) { $max = _var($disk,'maxTemp',-1)>=0 ? $disk['maxTemp'] : ($maxNVME>=0 ? $maxNVME : (_var($disk,'rotational',1)==0 && $display['maxssd']>=0 ? $display['maxssd'] : $display['max'])); $top = $display['top'] ?? 120; $color= 'green'; - if (exceed($temp,$max,$top)) { + if (exceed($temp,$max,$top) || $temp<0) { $color = 'red'; $red++; } elseif (exceed($temp,$hot,$top)) { $color = 'orange'; $orange++;