mirror of
https://github.com/unraid/webgui.git
synced 2026-03-11 21:38:50 -05:00
Multi cache support
This commit is contained in:
@@ -78,7 +78,7 @@ foreach ($disks as $disk) {
|
||||
$cache_used[$name] = $disk['fsSize']-$disk['fsFree'];
|
||||
$cache_type[$name] = $disk['rotational'] ? ($disk['luksState'] ? 'disk-encrypted' : 'disk') : 'nvme';
|
||||
$cache_rate[$name] = number_format(100*$cache_used[$name]/($cache_size[$name] ?: 1),1,$dot,'');
|
||||
if (!$cache[$name]['devices']) unset($pools[$name]);
|
||||
if (!$cache[$name]['devices']) unset($pools[array_search($name,$pools)]);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user