From 803b5d8d9271e46bbcd8d902b19f2aaf9eb89701 Mon Sep 17 00:00:00 2001 From: bergware Date: Mon, 25 Dec 2023 08:34:05 +0100 Subject: [PATCH] Update update_2 --- emhttp/plugins/dynamix/nchan/update_2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;