From 2d002eb2628a179430eb9524485df83478c4ccfa Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 6 Jun 2019 16:28:10 +0200 Subject: pool.php: ignore not-up-to-date mirrors --- pool.php | 1 + 1 file changed, 1 insertion(+) diff --git a/pool.php b/pool.php index 19c0b87..05cece3 100644 --- a/pool.php +++ b/pool.php @@ -15,6 +15,7 @@ else $result = mysql_run_query( 'SELECT `mirror_statuses`.`url` FROM `mirror_statuses`' . ' WHERE `mirror_statuses`.`active`' . + ' AND `mirror_statuses`.`last_sync` > UNIX_TIMESTAMP(NOW())-' . $cutoff . ' AND `mirror_statuses`.`start` > UNIX_TIMESTAMP(NOW())-' . $cutoff . ' AND `mirror_statuses`.`protocol` = "' . $protocol . '"' . ' GROUP BY `mirror_statuses`.`url`' . -- cgit v1.2.3-70-g09d2