cvs: php-master-web /scripts mirror-test
| From: | Gabor Hojtsy | Date: | Sat, 07 Aug 2004 20:07:44 +0000 |
| Subject: | cvs: php-master-web /scripts mirror-test | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-25725@lists.php.net to get a copy of this message | ||
goba Sat Aug 7 16:07:44 2004 EDT
Modified files:
/php-master-web/scripts mirror-test
Log:
routing issues seem to be solved, remove double checking stuff
http://cvs.php.net/diff.php/php-master-web/scripts/mirror-test?r1=1.68&r2=1.69&ty=u
Index: php-master-web/scripts/mirror-test
diff -u php-master-web/scripts/mirror-test:1.68 php-master-web/scripts/mirror-test:1.69
--- php-master-web/scripts/mirror-test:1.68 Fri Aug 6 04:54:58 2004
+++ php-master-web/scripts/mirror-test Sat Aug 7 16:07:43 2004
@@ -39,35 +39,9 @@
// Free up the result to get more memory
mysql_free_result($result);
-// Get mirrmon output to double check our results
-$doublecheck = ''; $mirrmon = array();
-$dcheck = explode("\n", @file_get_contents("http://iso.ego.fi/php_mirrors/state.txt"));
-if (is_array($dcheck)) {
- $doublecheck = "Double checking " . count($dcheck) . "/" . count($hosts) .
" mirrors\n";
- foreach ($dcheck as $mirrorinfo) {
- $details = explode(" ", $mirrorinfo);
- $mirrmon[$details[0]] = array($details[1], $details[3]); // age/undef and lastprobe/undef
- }
-}
-else {
- $doublecheck = "Double check request failed\n";
-}
-
// Get all mirror sites, and count the index of them
foreach ($hosts as $index => $host) {
- if ($mirrmon["http://{$host['hostname']}/"][1]
!= 'undef' &&
- $host['lastchecked'] < $mirrmon["http://{$host['hostname']}/"][1])
{
- $hosts[$index]['correction']['check'] = $mirrmon["http://{$host['hostname']}/"][1];
- }
-
- if ($mirrmon["http://{$host['hostname']}/"][0]
!= 'undef' &&
- $host['lastupdated'] < $mirrmon["http://{$host['hostname']}/"][0])
{
- $hosts[$index]['correction']['update'] = $mirrmon["http://{$host['hostname']}/"][0];
- }
-
- $doublecheck .= $host['hostname'] . " " .
serialize($hosts[$index]['correction']);
-
// Open port 80 on the mirror site
$fp = @fsockopen($host['hostname'], 80, $errno, $errstr, 15);
@@ -210,7 +184,6 @@
@mail(
"goba@php.net",
"Mirror site updates done",
- "$doublecheck\n" .
"$mirrorsupdated mirror sites properly updated (out of " . count($hosts) .
")\n\nProblematic mirrors:\n\n" . $problems
);
//}