Bug fixes

This commit is contained in:
bergware
2020-03-21 17:54:55 +01:00
parent aeffe0497a
commit eee348af8f
+1 -1
View File
@@ -53,7 +53,7 @@ function my_temp($value) {
return is_numeric($value) ? (($unit=='F' ? round(9/5*$value+32) : str_replace('.', $number[0], $value))." $unit") : $value;
}
function my_disk($name) {
return ucfirst(preg_replace('/^([a-z_-]+)(\d+)$/','$1 $2',$name));
return ucfirst(preg_replace('/(\d+)$/',' $1',$name));
}
function my_disks($disk) {
return strpos($disk['status'],'_NP')===false;