Skip to content

Commit

Permalink
Merge pull request zendframework#202 from xemlock/patch-1
Browse files Browse the repository at this point in the history
Fix for issue zendframework#201
  • Loading branch information
Ocramius committed Nov 24, 2015
2 parents a339987 + 7c62e99 commit b2509f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ZendDeveloperTools/View/Helper/Memory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
}
}
}

0 comments on commit b2509f8

Please sign in to comment.