Multi cache support

This commit is contained in:
bergware
2020-03-22 11:11:18 +01:00
parent c7a3637f08
commit 97480b2421
10 changed files with 14 additions and 19 deletions

View File

@@ -263,9 +263,7 @@ case 'cache':
require_once "$docroot/webGui/include/CustomMerge.php";
require_once "$docroot/webGui/include/Preselect.php";
$error = $warning = $red = $orange = $fail = $smart = $full = $high = 0;
$cache = cache_filter($disks);
$pools = pools_filter($cache);
foreach ($pools as $pool) if ($cache[$pool]['devices']) {
foreach (pools_filter($disks) as $pool) if ($disks[$pool]['devices']) {
array_group('Cache',$pool);
echo "\0".($error+$warning)."\0".($red+$orange)."\0".($fail+$smart)."\0".($full+$high)."\r";
}