mirror of
https://github.com/unraid/webgui.git
synced 2026-04-23 18:48:49 -05:00
Correction in display of disk, cache and parity name
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user