From 0dba93a9fc87d06cfb1e63e9f6a28f589819c38f Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 22 Sep 2010 13:28:12 -0500 Subject: Switch mirror status delay display to average delay This takes a bit more work to compute, but since we cache all of this anyway it isn't too big of deal. Using average delay instead of last delay will be a bit more fair on mirrors that have odd syncing schedules, as well as exposing those that only sync once a day. Also fix an issue that will arise with cutoff_time being calculated once, and adjust mirror score to treat hours delay as a float rather than an integer. Signed-off-by: Dan McGee --- templates/mirrors/status_table.html | 4 ++-- 1 file changed, 2 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 90bbf6b6..75157765 100644 --- a/templates/mirrors/status_table.html +++ b/templates/mirrors/status_table.html @@ -6,7 +6,7 @@ Protocol Country Last Sync - Delay (hh:mm) + μ Delay (hh:mm) μ Duration (secs) σ Duration (secs) Mirror Score @@ -22,7 +22,7 @@ {{ m_url.delay|duration|default:'unknown' }} {{ m_url.duration_avg|floatformat:2|default:'unknown' }} {{ m_url.duration_stddev|floatformat:2|default:'unknown' }} - {{ m_url.score|floatformat:1|default:'unknown' }} + {{ m_url.score|floatformat:1|default:'∞' }} {% endfor %} -- cgit v1.2.3-55-g3dc8