From 2e5b1afd375e1065dfb451281e44a5a172fd2e8b Mon Sep 17 00:00:00 2001 From: Florian Schaal <florian@schaal-24.de> Date: Wed, 08 Jan 2014 10:45:07 -0500 Subject: [PATCH] fixed typo --- interface/lib/classes/functions.inc.php | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/interface/lib/classes/functions.inc.php b/interface/lib/classes/functions.inc.php index 48aa361..a964634 100644 --- a/interface/lib/classes/functions.inc.php +++ b/interface/lib/classes/functions.inc.php @@ -309,11 +309,9 @@ * @param int precicion - after-comma-numbers (default: 2) * @return string - formated bytes */ - - public function formatBytes($size, $precision = 2) { $base=log($size)/log(1024); - $suffixes=array('', 'k', 'M', 'G', 'T'); + $suffixes=array('', ' kB', ' MB', ' GB', ' TB'); return round(pow(1024, $base-floor($base)), $precision).$suffixes[floor($base)]; } -- Gitblit v1.9.1