From: Banana Date: Thu, 26 Apr 2012 09:24:59 +0000 (+0200) Subject: new function X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=a1c1dd1bf6d0802afeed69a04ecafb57c8e88671;p=dolphin.git new function --- diff --git a/single-functions/formating-bytes.php b/single-functions/formating-bytes.php new file mode 100644 index 0000000..3ada150 --- /dev/null +++ b/single-functions/formating-bytes.php @@ -0,0 +1,45 @@ + $powerBase && $power < $powerMax) { + $power++; + $amount /= $powerBase; + } + + return round($amount, $decimals) . ' ' . $prefixes[$power] . $unit; +} + +?> \ No newline at end of file