mirror of
https://github.com/unraid/webgui.git
synced 2026-04-30 06:49:24 -05:00
Multi cache pool support
This commit is contained in:
@@ -32,8 +32,7 @@ function model($id) {
|
||||
}
|
||||
function truncate($name) {
|
||||
if (strlen($name)<=15) return $name;
|
||||
[$n1,$n2] = preg_split('/(?<=[a-z_-])(?= ?[0-9]+)/i',$name);
|
||||
return substr($n1,0,12).'...'.$n2;
|
||||
return substr($name,0,6).'...'.substr($name,-6);
|
||||
}
|
||||
// sort unassigned devices on disk identification
|
||||
if (count($devs)>1) array_multisort(array_column($devs,'sectors'),SORT_DESC,array_map('model',array_column($devs,'id')),SORT_NATURAL|SORT_FLAG_CASE,array_column($devs,'device'),$devs);
|
||||
|
||||
Reference in New Issue
Block a user