summaryrefslogtreecommitdiffstats
path: root/system/application/helpers/filebin_helper.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-11-07 18:24:28 +0100
committerFlorian Pritz <bluewind@xssn.at>2010-11-07 18:47:18 +0100
commitdf26ee52259cfcb66701a072266fd59fe75ef389 (patch)
tree210e39c2ec6ad12fbbe3062fa183422be0ea5a8f /system/application/helpers/filebin_helper.php
parent4e058f32ff6174698709a9afdf67f4f9af60e7db (diff)
change indentaion to tabs
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'system/application/helpers/filebin_helper.php')
-rw-r--r--system/application/helpers/filebin_helper.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/system/application/helpers/filebin_helper.php b/system/application/helpers/filebin_helper.php
index 34b231023..3d6c30b76 100644
--- a/system/application/helpers/filebin_helper.php
+++ b/system/application/helpers/filebin_helper.php
@@ -2,8 +2,9 @@
// 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');
- return round(pow(1024, $base - floor($base)), $precision) . $suffixes[floor($base)];
+ $base = log($size) / log(1024);
+ $suffixes = array('B', 'kB', 'MB', 'GB', 'TB' , 'PB' , 'EB');
+ return round(pow(1024, $base - floor($base)), $precision) . $suffixes[floor($base)];
}
+# vim: set noet: