cvs: phpweb /include loadavg.inc

From: Date: Fri, 23 May 2003 00:05:00 +0000
Subject: cvs: phpweb /include loadavg.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-17915@lists.php.net to get a copy of this message
wez Thu May 22 20:05:00 2003 EDT Modified files: /phpweb/include loadavg.inc Log: avoid function calls and hash-lookups here when we already have the details. Index: phpweb/include/loadavg.inc diff -u phpweb/include/loadavg.inc:1.5 phpweb/include/loadavg.inc:1.6 --- phpweb/include/loadavg.inc:1.5 Thu May 22 19:30:58 2003 +++ phpweb/include/loadavg.inc Thu May 22 20:04:59 2003 @@ -25,10 +25,10 @@ /* find potential mirrors */ foreach ($MIRRORS as $murl => $mirror) { if ($murl != 'http://www.php.net' && - mirror_status($murl) == MIRROR_OK && + $mirror[7] == MIRROR_OK /* mirror status */ && $mirror[5] /* searchable */) { - if (mirror_country($murl) == $COUNTRY) { + if ($mirror[0] == $COUNTRY) { $mirrors[] = $murl; } else { $any_mirrors[] = $murl;

« previous php.mirrors (#17915) next »