Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-09-11 07:26:20 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2020-09-11 07:26:20 +0200
commit035d9ed800d353d37ac2f0b6fdccf625ba2ceba9 (patch)
tree1e55df2383a318deec3ffed47f421a557490efb6
parentf54a157070087859ec518cf4392b78d84cbbbf91 (diff)
mirrorlist.php: using a comong cutoff for mirrors
-rw-r--r--mirrorlist.php5
1 files changed, 4 insertions, 1 deletions
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 ' .