diff options
author | Jelle van der Waa <jelle@archlinux.org> | 2019-02-18 20:39:28 +0100 |
---|---|---|
committer | Jelle van der Waa <jelle@archlinux.org> | 2019-02-18 20:56:15 +0100 |
commit | fdae105d968bcd29b2b31407a99882f66ab07de0 (patch) | |
tree | 965864a4be9956c3dabeec23745789dea068ca29 /templates/mirrors/mirror_details_urls.html | |
parent | 413c173c214fd7fa3e34d1559cf21f04ec8067cb (diff) | |
download | archweb-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/mirror_details_urls.html')
-rw-r--r-- | templates/mirrors/mirror_details_urls.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/mirrors/mirror_details_urls.html b/templates/mirrors/mirror_details_urls.html index a2df00de..0f88b06c 100644 --- a/templates/mirrors/mirror_details_urls.html +++ b/templates/mirrors/mirror_details_urls.html @@ -29,9 +29,9 @@ <td>{{ m_url.last_sync|date:'Y-m-d H:i'|default:'unknown' }}</td> <td>{{ m_url.completion_pct|percentage:1 }}</td> <td>{{ m_url.delay|duration|default:'unknown' }}</td> - <td>{{ m_url.duration_avg|floatvalue:2 }}</td> - <td>{{ m_url.duration_stddev|floatvalue:2 }}</td> - <td>{{ m_url.score|floatvalue:1|default:'∞' }}</td> + <td>{{ m_url.duration_avg|floatformat:2 }}</td> + <td>{{ m_url.duration_stddev|floatformat:2 }}</td> + <td>{{ m_url.score|floatformat:1|default:'∞' }}</td> <td><a href="{{ m_url.id }}/">Details</a></td> </tr> {% endfor %} |