summaryrefslogtreecommitdiff
path: root/templates/mirrors
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-22 13:28:12 -0500
committerDan McGee <dan@archlinux.org>2010-09-22 13:28:12 -0500
commit0dba93a9fc87d06cfb1e63e9f6a28f589819c38f (patch)
tree987381f5d896565680198a84a994a9a426b5c966 /templates/mirrors
parent550ef2eeeb58a3899b612bf5f895b2ae962086a9 (diff)
Switch mirror status delay display to average delayrelease_2010-09-22
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 <dan@archlinux.org>
Diffstat (limited to 'templates/mirrors')
-rw-r--r--templates/mirrors/status.html9
-rw-r--r--templates/mirrors/status_table.html4
2 files changed, 8 insertions, 5 deletions
diff --git a/templates/mirrors/status.html b/templates/mirrors/status.html
index 1e7e38a5..d89f2b41 100644
--- a/templates/mirrors/status.html
+++ b/templates/mirrors/status.html
@@ -20,8 +20,9 @@
<tt>lastsync</tt> file on the mirror. If this file could not be
retrieved or contained data we didn't recognize, this column will show
'unknown'.</li>
- <li><em>Delay:</em> The calculated mirroring delay; e.g. <code>last
- check − last sync</code>.</li>
+ <li><em>μ Delay:</em> The calculated average mirroring delay; e.g. the
+ mean value of <code>last check − last sync</code> for each check of
+ this mirror URL.</li>
<li><em>μ Duration:</em> The average (mean) time it took to connect and
retrieve the <tt>lastsync</tt> file from the given URL. Note that this
connection time is from the location of the Arch server; your geography
@@ -92,8 +93,10 @@
<script type="text/javascript" src="/media/jquery.tablesorter.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
- $("#outofsync_mirrors").add("#successful_mirrors").tablesorter(
+ $("#outofsync_mirrors").tablesorter(
{widgets: ['zebra'], sortList: [[3,1], [5,1]]});
+ $("#successful_mirrors").tablesorter(
+ {widgets: ['zebra'], sortList: [[7,0]]});
$("#errorlog_mirrors").tablesorter(
{widgets: ['zebra'], sortList: [[4,1], [5,1]]});
});
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 @@
<th>Protocol</th>
<th>Country</th>
<th>Last Sync</th>
- <th>Delay (hh:mm)</th>
+ <th>μ Delay (hh:mm)</th>
<th>μ Duration (secs)</th>
<th>σ Duration (secs)</th>
<th>Mirror Score</th>
@@ -22,7 +22,7 @@
<td>{{ m_url.delay|duration|default:'unknown' }}</td>
<td>{{ m_url.duration_avg|floatformat:2|default:'unknown' }}</td>
<td>{{ m_url.duration_stddev|floatformat:2|default:'unknown' }}</td>
- <td>{{ m_url.score|floatformat:1|default:'unknown' }}</td>
+ <td>{{ m_url.score|floatformat:1|default:'∞' }}</td>
</tr>
{% endfor %}
</tbody>