Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Fix for issue #201 #202

Merged
merged 1 commit into from
Nov 24, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
}
}
}