diff --git a/emhttp/plugins/dynamix/nchan/update_2 b/emhttp/plugins/dynamix/nchan/update_2 index 51ace60fa..c6427082c 100755 --- a/emhttp/plugins/dynamix/nchan/update_2 +++ b/emhttp/plugins/dynamix/nchan/update_2 @@ -223,13 +223,13 @@ function device_usage(&$disk, &$full, &$high) { if ($critical>0 && $load>=$critical) {$class = 'redbar'; $full++;} elseif ($warning>0 && $load>=$warning) {$class = 'orangebar'; $high++;} else $class = 'greenbar'; - } - else + } else { $class = false; + } return $text%10==0 ? $used : "$used
"; - } - else + } else { return $text%10==0 ? "-" : "-
"; + } } function array_group($type, $pool=false) { global $disks,$error,$warning,$red,$orange,$fail,$smart,$full,$high;