cvs: pear /Net_IRC/examples stats.php
| From: | Tomas V.V.Cox | Date: | Sun, 28 Apr 2002 14:43:31 +0000 |
| Subject: | cvs: pear /Net_IRC/examples stats.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3605@lists.php.net to get a copy of this message | ||
cox Sun Apr 28 10:43:31 2002 EDT
Modified files:
/pear/Net_IRC/examples stats.php
Log:
Do not block the socket and wait a little more until the stats dump
Index: pear/Net_IRC/examples/stats.php
diff -u pear/Net_IRC/examples/stats.php:1.1 pear/Net_IRC/examples/stats.php:1.2
--- pear/Net_IRC/examples/stats.php:1.1 Tue Apr 23 22:28:25 2002
+++ pear/Net_IRC/examples/stats.php Sun Apr 28 10:43:31 2002
@@ -20,8 +20,8 @@
$irc->command("JOIN #pear");
$i = 0;
while (true) {
- $irc->read(true);
- if ($i++ > 6) {
+ $irc->readEvent();
+ if ($i++ > 12) {
print_r($irc->getStats());
$i = 0;
}