From: Matteo Nastasi (mop) Date: Wed, 18 Jul 2012 05:25:50 +0000 (+0200) Subject: centralized get curtime var X-Git-Tag: v4.0.0~93 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=73881e35cfd5f8a48cf5d2b7436c40a3101a75f6;p=brisk.git centralized get curtime var --- diff --git a/web/spush/brisk-spush.php b/web/spush/brisk-spush.php index 5c2db29..3e3f601 100755 --- a/web/spush/brisk-spush.php +++ b/web/spush/brisk-spush.php @@ -222,7 +222,9 @@ function main() stream_set_blocking($list, $blocking_mode); # Set the stream to non-blocking while ($main_loop) { - echo "IN LOOP\n"; + $curtime = time(); + printf("IN LOOP: Current opened: %d\n", count($socks)); + /* Prepare the read array */ if ($shutdown) $read = array_merge(array("$in" => $in), $socks);