From 4bcaf44e468e20dd5a7d0214f8181e6707d3766c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 15 Jan 2025 11:01:56 +0100 Subject: improve mirrors check --- check.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'check.php') 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 "\n"; } -- cgit