We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f93e2a commit 8d8ba85Copy full SHA for 8d8ba85
app/code/Magento/ApplicationPerformanceMonitor/Profiler/Output/LoggerOutput.php
@@ -44,7 +44,7 @@ public function isEnabled(): bool
44
*/
45
public function doOutput(array $metrics, array $information)
46
{
47
- if (! $this->isEnabled()) {
+ if (!$this->isEnabled()) {
48
return;
49
}
50
if (!empty($information['subject'])) {
@@ -152,7 +152,8 @@ private function prettyElapsedTime(float $time): string
152
153
private function prettyUnixTime(float $time): string
154
155
- return \DateTime::createFromFormat('U.u', (string)$time)->format('Y-m-d\TH:i:s.u');
+ $timeAsString = sprintf("%.1f", $time);
156
+ return \DateTime::createFromFormat('U.u', $timeAsString)->format('Y-m-d\TH:i:s.u');
157
158
159
/**
0 commit comments