Convert SQLAlchemy query duration to ms to match the label

The SQLAlchemy panel labels the query duration column "(ms)" but the
times from Flask-SQLAlchemy are given in seconds.

Fixes #36
This commit is contained in:
Matt Good
2012-09-25 09:45:52 -07:00
parent d87e7fc347
commit cfa5984d3e

View File

@@ -10,7 +10,7 @@
<tbody>
{% for query in queries %}
<tr class="{{ loop.cycle('flDebugOdd', 'flDebugEven') }}">
<td>{{ '%.4f'|format(query.duration) }}</td>
<td>{{ '%.4f'|format(query.duration * 1000) }}</td>
<td>
{% if query.params %}
{% if query.is_select %}