intval() of a number seems unnecessary

and it could cause 32bit integer overflow issues
This commit is contained in:
Robin Appelman 2012-02-26 03:31:04 +01:00
parent ff9111847f
commit fe0832746b
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ class OC_Helper {
$bytes *= $bytes_array[$matches[1]];
}
$bytes = intval(round($bytes, 2));
$bytes = round($bytes, 2);
return $bytes;
}