This instance was upgraded to Heptapod 0.27.2 on 2021-12-08 at 22:00 UTC+1

Commit 97b80fef authored by Rémy Coutable's avatar Rémy Coutable
Browse files

Merge branch 'performance-bar-sql-timings' into 'master'

Fix SQL timings for the performance bar

See merge request gitlab-org/gitlab-ce!15181
......@@ -36,7 +36,7 @@ def setup_subscribers
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment