diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2017-11-03 15:45:58 +0100 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2017-11-03 15:45:58 +0100 |
commit | 58058ce0ca5cd8b188a747d60810da4bfbed1a9b (patch) | |
tree | 9e82dcb362b052f7b3a09d0780d73ada2d09f240 /lib/gitlab/performance_bar | |
parent | 64c9d7805d80537600251d5f6e1b5a32d4b6d1c0 (diff) | |
download | gitlab-ce-58058ce0ca5cd8b188a747d60810da4bfbed1a9b.tar.gz |
Fix SQL timings for the performance bar
My recent change accidentally changed the reported time from
milliseconds to seconds, resulting in wrong timings being displayed.
Diffstat (limited to 'lib/gitlab/performance_bar')
-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 69e117f1da9..f2825db59ae 100644 --- a/lib/gitlab/performance_bar/peek_query_tracker.rb +++ b/lib/gitlab/performance_bar/peek_query_tracker.rb @@ -36,7 +36,7 @@ module Gitlab end def track_query(raw_query, bindings, start, finish) - duration = finish - start + duration = (finish - start) * 1000.0 query_info = { duration: duration.round(3), sql: raw_query } PEEK_DB_CLIENT.query_details << query_info |