mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-07-16 06:16:31 +02:00
Remove precision for microseconds
Maybe a bit much for microseconds.
This commit is contained in:
@ -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';
|
||||
}
|
||||
|
Reference in New Issue
Block a user