Skip to content

Commit 58058ce

Browse files
author
Yorick Peterse
committed
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.
1 parent 64c9d78 commit 58058ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/gitlab/performance_bar/peek_query_tracker.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def setup_subscribers
3636
end
3737

3838
def track_query(raw_query, bindings, start, finish)
39-
duration = finish - start
39+
duration = (finish - start) * 1000.0
4040
query_info = { duration: duration.round(3), sql: raw_query }
4141

4242
PEEK_DB_CLIENT.query_details << query_info

0 commit comments

Comments
 (0)