Fix bug in ANBU that cause wrong total time showing on Queries tab
When query time is larger than one second 'array_sum' cannot convert it to float right. Also, it is better to fire 'laravel.query' event with raw time as an argument rather than its string representation
This commit is contained in:
@@ -308,7 +308,7 @@ class Connection {
|
||||
*/
|
||||
protected function log($sql, $bindings, $start)
|
||||
{
|
||||
$time = number_format((microtime(true) - $start) * 1000, 2);
|
||||
$time = (microtime(true) - $start) * 1000;
|
||||
|
||||
Event::fire('laravel.query', array($sql, $bindings, $time));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user