From f5dee9aa18f4ec426130676bd1e50dac79ec91e4 Mon Sep 17 00:00:00 2001 From: Jan Stolle Date: Sun, 19 Apr 2020 13:04:25 +0200 Subject: [PATCH] Remove thousands separator in time records (#876) --- src/Watchers/QueryWatcher.php | 2 +- src/Watchers/RedisWatcher.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Watchers/QueryWatcher.php b/src/Watchers/QueryWatcher.php index dff49989e..56dd6c555 100644 --- a/src/Watchers/QueryWatcher.php +++ b/src/Watchers/QueryWatcher.php @@ -40,7 +40,7 @@ public function recordQuery(QueryExecuted $event) 'connection' => $event->connectionName, 'bindings' => [], 'sql' => $this->replaceBindings($event), - 'time' => number_format($time, 2), + 'time' => number_format($time, 2, '.', ''), 'slow' => isset($this->options['slow']) && $time >= $this->options['slow'], 'file' => $caller['file'], 'line' => $caller['line'], diff --git a/src/Watchers/RedisWatcher.php b/src/Watchers/RedisWatcher.php index c344a957e..d4dc915b7 100644 --- a/src/Watchers/RedisWatcher.php +++ b/src/Watchers/RedisWatcher.php @@ -40,7 +40,7 @@ public function recordCommand(CommandExecuted $event) Telescope::recordRedis(IncomingEntry::make([ 'connection' => $event->connectionName, 'command' => $this->formatCommand($event->command, $event->parameters), - 'time' => number_format($event->time, 2), + 'time' => number_format($event->time, 2, '.', ''), ])); }