From d724958dec3ef3260f0a85b0eb94eb50af6db164 Mon Sep 17 00:00:00 2001 From: Andrey Savchenko Date: Wed, 2 Jan 2019 23:22:31 +0200 Subject: [PATCH] Rounded memory value, saw a screenshot with it blowing up (hadn't seen on my systems). --- src/Record/Stopwatch_Record.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Record/Stopwatch_Record.php b/src/Record/Stopwatch_Record.php index 60238ba..ad053df 100644 --- a/src/Record/Stopwatch_Record.php +++ b/src/Record/Stopwatch_Record.php @@ -43,7 +43,7 @@ class Stopwatch_Record implements Record_Interface { 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 ? "
{$this->description}" : ''; return "{$this->name} – {$duration} ms – {$memory} MB{$description}";