summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@server-speed.net>2011-05-28 20:00:30 +0200
committerFlorian Pritz <bluewind@server-speed.net>2011-05-28 20:00:30 +0200
commitd8f426985a3f7443af59d23bbf1dff5e586c428e (patch)
tree4e716ae587f6912a83d413445e3c0fdd67ee2b4c
parent77c5b12cdfbd9b2311db341ca79c6d81b97b5df4 (diff)
use correct suffixes for sizes
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
-rw-r--r--application/helpers/filebin_helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/helpers/filebin_helper.php b/application/helpers/filebin_helper.php
index 3d6c30b76..4063fd3fb 100644
--- a/application/helpers/filebin_helper.php
+++ b/application/helpers/filebin_helper.php
@@ -3,7 +3,7 @@
// Source: http://ibnuyahya.com/format-bytes-to-kb-mb-gb/
function format_bytes($size, $precision = 2){
$base = log($size) / log(1024);
- $suffixes = array('B', 'kB', 'MB', 'GB', 'TB' , 'PB' , 'EB');
+ $suffixes = array('B', 'KiB', 'MiB', 'GiB', 'TiB' , 'PiB' , 'EiB');
return round(pow(1024, $base - floor($base)), $precision) . $suffixes[floor($base)];
}