Add round

This commit is contained in:
Philipp 2021-12-10 21:18:43 +01:00
parent 39c2282c12
commit 3f6358c85c
No known key found for this signature in database
GPG key ID: 24A7501396EB5432

View file

@ -342,7 +342,7 @@ class Router
if ($this->dice_profiler_threshold > 0) {
$dur = floatval(microtime(true) - $stamp);
if ($dur >= $this->dice_profiler_threshold) {
$this->logger->warning('Dice module creation lasts too long.', ['duration' => $dur, 'module' => $module_class, 'parameters' => $module_parameters]);
$this->logger->warning('Dice module creation lasts too long.', ['duration' => round($dur, 3), 'module' => $module_class, 'parameters' => $module_parameters]);
}
}
}