1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-16 21:08:34 +01:00

Remove precision for microseconds

Maybe a bit much for microseconds.
This commit is contained in:
Barry vd. Heuvel 2013-10-02 10:56:03 +02:00
parent 8915596404
commit ebe4e87851

View File

@ -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';
}