From 2c1336488059dfc24c34dd11865c713fec252cbc Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 30 Sep 2010 12:47:30 -0500 Subject: Mirror status improvements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix sorting issues. '', 'unknown', and '∞' should now always sort after anything else in the list. * Add a completion percentage column; this will tell you at a glance if a mirror is sometimes unresponsive. This should probably be incorporated into the mirror score. * Make a few more things dynamic in the template, like the time back the page reflects. * Add some additional template tags for formatting things. Signed-off-by: Dan McGee --- templates/mirrors/status_table.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'templates/mirrors/status_table.html') diff --git a/templates/mirrors/status_table.html b/templates/mirrors/status_table.html index 7515776..240a545 100644 --- a/templates/mirrors/status_table.html +++ b/templates/mirrors/status_table.html @@ -6,6 +6,7 @@ Protocol Country Last Sync + Completion % μ Delay (hh:mm) μ Duration (secs) σ Duration (secs) @@ -19,9 +20,10 @@ {{ m_url.protocol }} {{ m_url.mirror.country }} {{ m_url.last_sync|date:'Y-m-d H:i'|default:'unknown' }} + {{ m_url.completion_pct|percentage:1 }} {{ m_url.delay|duration|default:'unknown' }} - {{ m_url.duration_avg|floatformat:2|default:'unknown' }} - {{ m_url.duration_stddev|floatformat:2|default:'unknown' }} + {{ m_url.duration_avg|floatformat:2 }} + {{ m_url.duration_stddev|floatformat:2 }} {{ m_url.score|floatformat:1|default:'∞' }} {% endfor %} -- cgit v1.2.3-24-g4f1b