Update update_2

This commit is contained in:
bergware
2023-12-25 08:27:09 +01:00
parent 92f2eb8653
commit 1899a62c8c

View File

@@ -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[] = "<tr class='updated'><td>";