From 7c62e99aa153edbe3e35b537f90438d53afe5129 Mon Sep 17 00:00:00 2001 From: xemlock Date: Tue, 24 Nov 2015 09:28:16 +0100 Subject: [PATCH] Fix for issue #201 --- src/ZendDeveloperTools/View/Helper/Memory.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ZendDeveloperTools/View/Helper/Memory.php b/src/ZendDeveloperTools/View/Helper/Memory.php index 3944bbe..fe2ca00 100644 --- a/src/ZendDeveloperTools/View/Helper/Memory.php +++ b/src/ZendDeveloperTools/View/Helper/Memory.php @@ -27,7 +27,7 @@ class Memory extends AbstractHelper { /** - * Returns the formatted time. + * Returns the formatted memory. * * @param integer $size * @param integer $precision Only used for MegaBytes @@ -38,9 +38,9 @@ public function __invoke($size, $precision = 2) if ($size < 1024) { return sprintf('%d B', $size); } elseif (($size / 1024) < 1024) { - return sprintf('%.0f Kb', $size / 1024); + return sprintf('%.0f KB', $size / 1024); } else { - return sprintf('%.' . $precision . 'f Mb', $size / 1024 / 1024); + return sprintf('%.' . $precision . 'f MB', $size / 1024 / 1024); } } }