intval() of a number seems unnecessary
and it could cause 32bit integer overflow issues
This commit is contained in:
parent
ff9111847f
commit
fe0832746b
|
@ -194,7 +194,7 @@ class OC_Helper {
|
|||
$bytes *= $bytes_array[$matches[1]];
|
||||
}
|
||||
|
||||
$bytes = intval(round($bytes, 2));
|
||||
$bytes = round($bytes, 2);
|
||||
|
||||
return $bytes;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue