Skip to content

Commit

Permalink
Rounded memory value, saw a screenshot with it blowing up (hadn't see…
Browse files Browse the repository at this point in the history
…n on my systems).
  • Loading branch information
Rarst committed Jan 2, 2019
1 parent 950031b commit d724958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Record/Stopwatch_Record.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function get_name(): string {
public function get_description(): string {

$duration = round( $this->stopwatch_event->getDuration() );
$memory = $this->stopwatch_event->getMemory() / 1024 / 1024;
$memory = round( $this->stopwatch_event->getMemory() / 1024 / 1024, 2 );
$description = '' !== $this->description ? "<hr />{$this->description}" : '';

return "{$this->name}{$duration} ms – {$memory} MB{$description}";
Expand Down

0 comments on commit d724958

Please sign in to comment.