From ebe4e87851eb38ecd965ea3a52019a8a15b6b98e Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Wed, 2 Oct 2013 10:56:03 +0200 Subject: [PATCH] Remove precision for microseconds Maybe a bit much for microseconds. --- src/DebugBar/DataCollector/DataCollector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DebugBar/DataCollector/DataCollector.php b/src/DebugBar/DataCollector/DataCollector.php index e6e0274..ee55b87 100644 --- a/src/DebugBar/DataCollector/DataCollector.php +++ b/src/DebugBar/DataCollector/DataCollector.php @@ -53,7 +53,7 @@ abstract class DataCollector implements DataCollectorInterface public function formatDuration($seconds) { if($seconds < 0.001){ - return round($seconds * 1000000, 2) . 'μs'; + return round($seconds * 1000000) . 'μs'; }elseif ($seconds < 1) { return round($seconds * 1000, 2) . 'ms'; }