cvs: php-master-web /scripts mirror-test
| From: | Hannes Magnusson | Date: | Wed, 16 May 2007 08:36:29 +0000 |
| Subject: | cvs: php-master-web /scripts mirror-test | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-35391@lists.php.net to get a copy of this message | ||
bjori Wed May 16 08:36:29 2007 UTC
Modified files:
/php-master-web/scripts mirror-test
Log:
Don't update the lastchecked timestamp (when force-disabling) unless its
less then four-days-old
http://cvs.php.net/viewvc.cgi/php-master-web/scripts/mirror-test?r1=1.95&r2=1.96&diff_format=u
Index: php-master-web/scripts/mirror-test
diff -u php-master-web/scripts/mirror-test:1.95 php-master-web/scripts/mirror-test:1.96
--- php-master-web/scripts/mirror-test:1.95 Sat Apr 14 13:09:04 2007
+++ php-master-web/scripts/mirror-test Wed May 16 08:36:29 2007
@@ -301,7 +301,7 @@
// Store the problem encountered in the database, and collect
// all the problems into one string in case it will be mailed
else {
- if(isset($host['disable']) && $host['disable'] === true) {
+ if(isset($host['disable']) && $host['disable'] === true
&& $host["lastchecked"] < $four_days_ago) {
$query = "UPDATE mirrors SET ocmt = '" .
addslashes($host['problem']) . "', " .
"lastchecked = FROM_UNIXTIME($four_days_ago), " .
"lastupdated = FROM_UNIXTIME(" . $host['lastupdated'] .
") " .