Skip to content

Commit ea12aef

Browse files
committed
ICL: format_bytes helper used.
1 parent ea03490 commit ea12aef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Log/ExceptionHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ private function registerShutdownFunction()
4040
$executionTime = round($this->timeFinished - $this->timeStarted, 3);
4141
$this->log->info("Execution time: {$executionTime} sec.");
4242

43-
$memoryPeak = round(memory_get_peak_usage(true) / (1024 * 1024));
44-
$this->log->info("Memory peak usage: {$memoryPeak}M.");
43+
$memoryPeak = format_bytes(memory_get_peak_usage(true));
44+
$this->log->info("Memory peak usage: {$memoryPeak}.");
4545

4646
$this->log->info('%separator%');
4747

0 commit comments

Comments
 (0)