mirror of
https://github.com/unraid/webgui.git
synced 2026-03-09 04:21:27 -05:00
Multi cache support
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user