Skip to content

Commit 1858d26

Browse files
AmirRezaM75GromNaN
authored andcommitted
Convert query duration time to milliseconds
1 parent d8b509e commit 1858d26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CommandSubscriber.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ private function logQuery(CommandSucceededEvent|CommandFailedEvent $event): void
4848
}
4949
}
5050

51-
$this->connection->logQuery(Document::fromPHP($command)->toCanonicalExtendedJSON(), [], $event->getDurationMicros());
51+
$this->connection->logQuery(Document::fromPHP($command)->toCanonicalExtendedJSON(), [], $event->getDurationMicros() / 1000);
5252
}
5353
}

0 commit comments

Comments
 (0)