Bug fixes

This commit is contained in:
bergware
2020-03-21 17:57:12 +01:00
parent eee348af8f
commit 0974445a98
+1 -1
View File
@@ -59,7 +59,7 @@ function my_disks($disk) {
return strpos($disk['status'],'_NP')===false;
}
function prefix($key) {
return preg_replace('/[0-9]+$/','',$key);
return preg_replace('/\d+$/','',$key);
}
function parity_only($disk) {
return $disk['type']=='Parity';