Commit cb217712 authored by Hugh Davenport's avatar Hugh Davenport
Browse files

Add gigabyte support for get_real_size (bug #822501)



Change-Id: I660591652a9039aa0ac91d74e9ba205cda95b2b6
Signed-off-by: default avatarHugh Davenport <hugh@catalyst.net.nz>
parent 0b4b644a
......@@ -2173,6 +2173,10 @@ function get_real_size($size=0) {
else if (is_numeric($size)) return (int)$size;
$scan = array(
'GB' => 1073741824,
'Gb' => 1073741824,
'G' => 1073741824,
'g' => 1073741824,
'MB' => 1048576,
'Mb' => 1048576,
'M' => 1048576,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment