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.
This commit is contained in:
Yorick Peterse 2017-11-03 15:45:58 +01:00
parent 64c9d7805d
commit 58058ce0ca
No known key found for this signature in database
GPG Key ID: EDD30D2BEB691AC9
1 changed files with 1 additions and 1 deletions

View File

@ -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