summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-01-15 11:01:56 +0100
committerRemi Collet <remi@php.net>2025-01-15 11:01:56 +0100
commit4bcaf44e468e20dd5a7d0214f8181e6707d3766c (patch)
tree315595b668b123b8c9440a9bf40264876fc76eb1
parent56862ed152d57a4ebd3b8aa7f0bd7253cb7fad2b (diff)
improve mirrors checkHEADmaster
-rwxr-xr-xcheck.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/check.php b/check.php
index 60574f5e..b32672df 100755
--- a/check.php
+++ b/check.php
@@ -90,8 +90,6 @@ $mirrors = [
'https://mirror.docker.ru/remi/',
'https://repo.extreme-ix.org/remi/',
'https://mirror.mangohost.net/remi/',
- 'https://bd.mirror.vanehost.com/Remi/',
- 'https://repo1.vetta.net.nz/remi/',
'https://cdn.fjordos.no/remi/',
'https://mirror.fjordos.no/remi/',
'https://muug.ca/mirror/remi/',
@@ -106,6 +104,8 @@ $mirrors = [
'http://repo1.ash.innoscale.net/remi/', // 2025-01-13
];
$testing = [
+ 'https://bd.mirror.vanehost.com/Remi/',
+ 'https://repo1.vetta.net.nz/remi/',
];
$disabled = [
'http://remi.conetix.com.au/', // 2025-01-06
@@ -297,7 +297,10 @@ if ($ref) {
unset($pids[$pid]);
}
}
- if ($nb) printf("%3d mirrors checked,\n%3d are OK\n%3d are stalled\n%3d are KO.\n", $nb, $ok, $lack, $nb-$ok-$lack);
+ if ($nb) {
+ printf("%3d mirrors checked on %s,\n%3d are OK\t(%d%%)\n%3d are stalled\t(%d%%)\n%3d are KO.\n",
+ $nb, date("r"), $ok, $ok*100/$nb, $lack, $lack*100/$nb, $nb-$ok-$lack);
+ }
} else {
echo "</ul>\n";
}