From 1899a62c8c4a7bc0df86ef99973817e1b027802a Mon Sep 17 00:00:00 2001 From: bergware Date: Mon, 25 Dec 2023 08:27:09 +0100 Subject: [PATCH] Update update_2 --- 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 7d3eace75..51ace60fa 100755 --- a/emhttp/plugins/dynamix/nchan/update_2 +++ b/emhttp/plugins/dynamix/nchan/update_2 @@ -233,7 +233,7 @@ function device_usage(&$disk, &$full, &$high) { } function array_group($type, $pool=false) { global $disks,$error,$warning,$red,$orange,$fail,$smart,$full,$high; - $error = $warning = $red = $orange = $fail = $smart = $full = $high = 0; + if ($type != 'Data') {$error = $warning = $red = $orange = $fail = $smart = $full = $high = 0;} $echo = []; foreach ($disks as $disk) if (_var($disk,'type')==$type && strpos(_var($disk,'status'),'DISK_NP')===false && (!$pool||$pool==prefix(_var($disk,'name')))) { $echo[] = "";