Commit 50faab23 authored by Jérome Perrin's avatar Jérome Perrin

sql_browser: fix unit in server-timing header

parent e3804008
......@@ -32,6 +32,6 @@ for line in data[1:]:
new_line.append(v)
new_data.append(new_line)
response.setHeader("Server-Timing", 'db;dur=%s;desc="SQL query"' % (time.time() - start))
response.setHeader("Server-Timing", 'db;dur=%s;desc="SQL query"' % (1000 * (time.time() - start)))
response.setHeader('Content-Type', 'application/json')
return json.dumps(new_data, indent=2)
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