cvs: phpweb /include loadavg.inc
| From: | Hannes Magnusson | Date: | Mon, 01 Oct 2007 17:53:45 +0000 |
| Subject: | cvs: phpweb /include loadavg.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-150@lists.php.net to get a copy of this message | ||
bjori Mon Oct 1 17:53:45 2007 UTC
Modified files:
/phpweb/include loadavg.inc
Log:
Do not redirect to special mirrors
http://cvs.php.net/viewvc.cgi/phpweb/include/loadavg.inc?r1=1.13&r2=1.14&diff_format=u
Index: phpweb/include/loadavg.inc
diff -u phpweb/include/loadavg.inc:1.13 phpweb/include/loadavg.inc:1.14
--- phpweb/include/loadavg.inc:1.13 Fri Jul 7 13:15:04 2006
+++ phpweb/include/loadavg.inc Mon Oct 1 17:53:45 2007
@@ -1,6 +1,6 @@
<?php # vim:ft=php
-// $Id: loadavg.inc,v 1.13 2006/07/07 13:15:04 goba Exp $
+// $Id: loadavg.inc,v 1.14 2007/10/01 17:53:45 bjori Exp $
/*
Offload to the visitor's nearest mirror if the load is too high.
@@ -39,7 +39,7 @@
// Find potential close mirrors
foreach ($MIRRORS as $murl => $mirror) {
- if ($murl != 'http://www.php.net/'
&& $mirror[7] == MIRROR_OK) {
+ if ($murl != 'http://www.php.net/'
&& $mirror[7] == MIRROR_OK && $mirror[4] != MIRROR_SPECIAL) {
if ($mirror[0] == $COUNTRY) {
$close_mirrors[] = $murl;
} else {