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.html | 9 ++++++--- templates/mirrors/status_table.html | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'templates') 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 @@ lastsync file on the mirror. If this file could not be retrieved or contained data we didn't recognize, this column will show 'unknown'. -
  • Delay: The calculated mirroring delay; e.g. last - check − last sync.
  • +
  • μ Delay: The calculated average mirroring delay; e.g. the + mean value of last check − last sync for each check of + this mirror URL.
  • μ Duration: The average (mean) time it took to connect and retrieve the lastsync file from the given URL. Note that this connection time is from the location of the Arch server; your geography @@ -92,8 +93,10 @@