Commit Graph

7 Commits

Author SHA1 Message Date
Dan McGee
ed49122429 Fix an off by one error in math for check interval
Because we are averaging the interval and not the value, we need to subtract
one from the total we are dividing by. Whoops.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-01 18:08:54 -05:00
Dan McGee
bb84f9c96c Use new is_download field
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-30 14:32:54 -05:00
Dan McGee
2c13364880 Mirror status improvements
* 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 <dan@archlinux.org>
2010-09-30 12:47:30 -05:00
Dan McGee
10fca82816 Give more information about mirror check runs and frequency
Show how many times the check has ran in the last 24 hours, as well as the
average interval between checks.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-24 19:39:36 -05:00
Dan McGee
e82e953aa2 Mirror status query refinements
Only show errors for active and public mirrors, and collapse two filter
calls into just one for our normal status query.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-24 13:26:08 -05:00
Dan McGee
0dba93a9fc 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 <dan@archlinux.org>
2010-09-22 13:28:12 -05:00
Dan McGee
5b87b21ccd Allow caching of mirror status info
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-21 18:31:26 -05:00