Multi cache pool support

This commit is contained in:
bergware
2020-04-10 09:23:43 +02:00
parent 13dff5638b
commit 0e1818d467
+1 -1
View File
@@ -32,7 +32,7 @@ function model($id) {
}
function truncate($name) {
if (strlen($name)<=14) return $name;
[$n1,$n2] = preg_split('/(?<=[a-z])(?= ?[0-9]+)/i',$name);
[$n1,$n2] = preg_split('/(?<=[a-z_-])(?= ?[0-9]+)/i',$name);
return substr($n1,0,12).'... '.$n2;
}
// sort unassigned devices on disk identification