Skip to content

Commit

Permalink
Remove thousands separator in time records (#876)
Browse files Browse the repository at this point in the history
  • Loading branch information
janolivermr committed Apr 19, 2020
1 parent 63c4d7f commit f5dee9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Watchers/QueryWatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
2 changes: 1 addition & 1 deletion src/Watchers/RedisWatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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, '.', ''),
]));
}

Expand Down

0 comments on commit f5dee9a

Please sign in to comment.