diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-11-28 20:00:27 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-11-28 20:00:27 -0500 |
commit | 66e4f518ffef04779ed95012fde212270845e068 (patch) | |
tree | 3a55ad60b3453eecca862c54e2824fddf1820ce8 /mirrors/utils.py | |
parent | 03a028eb037b579a421be4f7d15c5ff02072ff46 (diff) | |
parent | dbb508b7222081b523ce3e0bd2b69f5fea6c7050 (diff) |
Merge branch 'master-nomake'
Diffstat (limited to 'mirrors/utils.py')
-rw-r--r-- | mirrors/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mirrors/utils.py b/mirrors/utils.py index bba8e36b..633731a7 100644 --- a/mirrors/utils.py +++ b/mirrors/utils.py @@ -35,7 +35,7 @@ def status_data(cutoff_time, mirror_id=None): sql = """ SELECT l.url_id, u.mirror_id, COUNT(l.id) AS check_count, - COUNT(l.duration) AS success_count, + COUNT(l.last_sync) AS success_count, MAX(l.last_sync) AS last_sync, MAX(l.check_time) AS last_check, AVG(l.duration) AS duration_avg, @@ -51,7 +51,7 @@ GROUP BY l.url_id, u.mirror_id sql = """ SELECT l.url_id, u.mirror_id, COUNT(l.id) AS check_count, - COUNT(l.duration) AS success_count, + COUNT(l.last_sync) AS success_count, MAX(l.last_sync) AS last_sync, MAX(l.check_time) AS last_check, AVG(l.duration) AS duration_avg, |