summaryrefslogtreecommitdiffstats
path: root/templates/mirrors/url_details_logs.html
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@archlinux.org>2019-02-18 20:39:28 +0100
committerJelle van der Waa <jelle@archlinux.org>2019-02-18 20:56:15 +0100
commitfdae105d968bcd29b2b31407a99882f66ab07de0 (patch)
tree965864a4be9956c3dabeec23745789dea068ca29 /templates/mirrors/url_details_logs.html
parent413c173c214fd7fa3e34d1559cf21f04ec8067cb (diff)
downloadarchweb-fdae105d968bcd29b2b31407a99882f66ab07de0.tar.gz
archweb-fdae105d968bcd29b2b31407a99882f66ab07de0.zip
mirrors: replace self-written floatvalue with floatformat
In 2013 floatformat was very slow in the mirror status page, these days floatformat is not that much slower.
Diffstat (limited to 'templates/mirrors/url_details_logs.html')
-rw-r--r--templates/mirrors/url_details_logs.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/mirrors/url_details_logs.html b/templates/mirrors/url_details_logs.html
index 2396fde7..19e530ab 100644
--- a/templates/mirrors/url_details_logs.html
+++ b/templates/mirrors/url_details_logs.html
@@ -21,7 +21,7 @@
<td>{% if log.location %}{{ log.location.source_ip }}{% else %}Unknown{% endif %}</td>
<td>{{ log.last_sync|date:'Y-m-d H:i' }}</td>
<td>{{ log.delay|duration }}</td>
- <td>{{ log.duration|floatvalue }}</td>
+ <td>{{ log.duration|floatformat:2 }}</td>
<td>{{ log.is_success|yesno|capfirst }}</td>
<td class="wrap">{{ log.error|linebreaksbr }}</td>
</tr>{% endfor %}