index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | mirrorlist.php | 5 |
diff --git a/mirrorlist.php b/mirrorlist.php index 56bebea..459468e 100644 --- a/mirrorlist.php +++ b/mirrorlist.php @@ -4,9 +4,12 @@ require_once "init.php"; include BASE . "/lib/mysql.php"; include BASE . "/lib/style.php"; +# as in mirrors.php +$cutoff = 3600; + $filter = '`mirror_statuses`.`active`' . - ' AND `mirror_statuses`.`last_sync`>UNIX_TIMESTAMP(NOW())-7*24*60*60'; + " AND `mirror_statuses`.`last_sync`>UNIX_TIMESTAMP(NOW())-$cutoff"; $result = mysql_run_query( 'SELECT DISTINCT ' . |