diff options
Diffstat (limited to 'core/Metrics/Formatter.php')
-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. |