|
@@ -22,7 +22,7 @@ class arw_monitorControl extends SystemControl
|
|
|
$total = strtolower(trim($space));
|
|
|
$last = $total[-1];
|
|
|
|
|
|
- $total = intval($total);
|
|
|
+ $total = floatval($total);
|
|
|
if($last == 't') {
|
|
|
$per = 1024 * 1024 * 1024 * 1024;
|
|
|
}
|
|
@@ -39,8 +39,6 @@ class arw_monitorControl extends SystemControl
|
|
|
$per = 1;
|
|
|
}
|
|
|
|
|
|
- Log::record("space=$space per=$per",Log::DEBUG);
|
|
|
-
|
|
|
return $total * $per;
|
|
|
};
|
|
|
|