diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-01-18 08:16:03 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-01-19 23:31:08 +0300 |
commit | 57183130c95067b6be72cef95118f87b9871417a (patch) | |
tree | 830dc2bcdad1e1f295e19b0374ee660e1ca27c39 /core/Metrics | |
parent | a141a2978aa669ab0bb34f4083afa02528e6a974 (diff) |
removed this function as a similar one already exists
Diffstat (limited to 'core/Metrics')
-rw-r--r-- | core/Metrics/Formatter.php | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/core/Metrics/Formatter.php b/core/Metrics/Formatter.php index 1bfb3152ce..5d9eb73a35 100644 --- a/core/Metrics/Formatter.php +++ b/core/Metrics/Formatter.php @@ -188,26 +188,6 @@ class Formatter return $prettyMoney; } - public function getPrettyBytes($bytes) - { - $units = array( - 'B' => 1, - 'KB' => 1024, - 'MB' => pow(1024, 2), - 'GB' => pow(1024, 3), - 'TB' => pow(1024, 4), - ); - - $prettyBytes = ''; - foreach ($units as $unit => $factor) { - if ($bytes > $factor) { - $prettyBytes = round($bytes / $factor, 2) . $unit; - } - } - - return $prettyBytes; - } - /** * Returns a percent string from a quotient value. Forces the use of a '.' * decimal place. |