Correction in display of disk, cache and parity name

This commit is contained in:
bergware
2017-05-27 12:52:25 +02:00
parent 6915b3ad0f
commit 80d983239e
+1 -1
View File
@@ -50,7 +50,7 @@ function my_temp($value) {
return is_numeric($value) ? (($unit=='C' ? str_replace('.', $number[0], $value) : round(9/5*$value+32))." $unit") : $value;
}
function my_disk($name) {
return ucfirst(preg_replace('/(\d+)/',' $1',$name));
return ucfirst(preg_replace('/^(disk|cache|parity)(\d+)/','$1 $2',$name));
}
function my_disks($disk) {
return strpos($disk['status'],'_NP')===false;