mirror of
https://github.com/unraid/webgui.git
synced 2026-05-03 08:19:27 -05:00
DeviceInfo: fix incorrect floor size entries
This commit is contained in:
@@ -31,6 +31,7 @@ function sanitize(&$val) {
|
||||
$data = explode('.',str_replace([' ',','],['','.'],$val));
|
||||
$last = array_pop($data);
|
||||
$val = count($data) ? implode($data).".$last" : $last;
|
||||
$val = preg_replace('/[^0-9.]/','',$val);
|
||||
}
|
||||
function presetSpace($val) {
|
||||
global $disk,$display;
|
||||
|
||||
Reference in New Issue
Block a user