]> mop.ddnsfree.com - git repositories - brisk.git/commitdiff
centralized get curtime var
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.com>
Wed, 18 Jul 2012 05:25:50 +0000 (07:25 +0200)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.com>
Wed, 18 Jul 2012 05:25:50 +0000 (07:25 +0200)
web/spush/brisk-spush.php

index 5c2db293a0b03b662d1bd4972d97221f212ce567..3e3f60122fe399436e84f2ebff3083b071e2855b 100755 (executable)
@@ -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);