From 73881e35cfd5f8a48cf5d2b7436c40a3101a75f6 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Wed, 18 Jul 2012 07:25:50 +0200 Subject: [PATCH] centralized get curtime var --- web/spush/brisk-spush.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.17.1