cvs: php-master-web /scripts mirror-test
| From: | Gabor Hojtsy | Date: | Sun, 12 Jan 2003 17:10:15 +0000 |
| Subject: | cvs: php-master-web /scripts mirror-test | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-14981@lists.php.net to get a copy of this message | ||
goba Sun Jan 12 12:10:15 2003 EDT
Modified files:
/php-master-web/scripts mirror-test
Log:
Only send one mail at midnight to me...
Index: php-master-web/scripts/mirror-test
diff -u php-master-web/scripts/mirror-test:1.32 php-master-web/scripts/mirror-test:1.33
--- php-master-web/scripts/mirror-test:1.32 Thu Jan 9 10:34:14 2003
+++ php-master-web/scripts/mirror-test Sun Jan 12 12:10:14 2003
@@ -121,9 +121,11 @@
}
-// DEBUG
-@mail(
- "goba@php.net",
- "Mirror site updates done",
- "$mirrorsupdated mirror sites properly updated (out of " . count($hosts) .
")\n\nProblematic mirrors:\n\n" . $problems
-);
\ No newline at end of file
+// Send a debug mail at midnight with current details
+if (intval(date("H")) == 24) {
+ @mail(
+ "goba@php.net",
+ "Mirror site updates done",
+ "$mirrorsupdated mirror sites properly updated (out of " . count($hosts) .
")\n\nProblematic mirrors:\n\n" . $problems
+ );
+}
\ No newline at end of file