1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-24 01:56:18 +02:00
This commit is contained in:
Jordi Boggiano
2015-07-14 10:25:17 +01:00
parent cf6fa57dd4
commit ca1376bd61
20 changed files with 42 additions and 41 deletions

View File

@@ -52,10 +52,10 @@ abstract class MemoryProcessor
return $bytes;
}
if ($bytes > 1024*1024) {
return round($bytes/1024/1024, 2).' MB';
if ($bytes > 1024 * 1024) {
return round($bytes / 1024 / 1024, 2).' MB';
} elseif ($bytes > 1024) {
return round($bytes/1024, 2).' KB';
return round($bytes / 1024, 2).' KB';
}
return $bytes . ' B';