diff options
author | Rémy Coutable <remy@rymai.me> | 2017-07-18 20:00:46 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-07-18 20:00:46 +0300 |
commit | 3dcd3df531081c2a3861866149463da4618e2396 (patch) | |
tree | 6ba43aeb5b82faa834f834ec0e8687f97fc5f4ed /lib | |
parent | fe0c3b79d92348f54c61b81635be65f895d2f712 (diff) |
Fix queries duration sorting in Performance Bar
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/performance_bar/peek_query_tracker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/performance_bar/peek_query_tracker.rb b/lib/gitlab/performance_bar/peek_query_tracker.rb index f97e895dbd0..67fee8c227d 100644 --- a/lib/gitlab/performance_bar/peek_query_tracker.rb +++ b/lib/gitlab/performance_bar/peek_query_tracker.rb @@ -37,7 +37,7 @@ module Gitlab def track_query(raw_query, bindings, start, finish) query = Gitlab::Sherlock::Query.new(raw_query, start, finish) - query_info = { duration: '%.3f' % query.duration, sql: query.formatted_query } + query_info = { duration: query.duration.round(3), sql: query.formatted_query } PEEK_DB_CLIENT.query_details << query_info end |