]> mop.ddnsfree.com - git repositories - brisk.git/commitdiff
speed doubled in index_rd.php and flush of command when the table start
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Sat, 22 Mar 2008 12:32:35 +0000 (12:32 +0000)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Sat, 22 Mar 2008 12:32:35 +0000 (12:32 +0000)
web/briskin5/index_rd.php
web/index_rd.php
web/index_wr.php

index 4bdb51fc7d48e020fe2271387ae807e504265714..d32d36c6f767c0afa5a139cd497d43f9f91f5a60 100644 (file)
@@ -318,8 +318,8 @@ for ($i = 0 ; time() < $endtime ; $i++) {
   $old_subst = $subst;
   $old_step =  $step;
   // log_rd("POST MAIN ".$step);;
-  usleep(400000);
-  if (($i % 5) == 0) {
+  usleep(200000);
+  if (($i % 10) == 0) {
     // log_rd2("TIME: ".time());
     echo '_';
     flush();
index 526ca342f48bbf209bbd7682c3dd4f05ad2ddf6e..288415cb48cd99b6d0ac66ce040a9bec50cca69c 100644 (file)
@@ -322,8 +322,8 @@ for ($i = 0 ; time() < $endtime ; $i++) {
   $old_subst = $subst;
   $old_step =  $step;
   // log_rd("POST MAIN ".$step);;
-  usleep(400000);
-  if (($i % 5) == 0) {
+  usleep(200000);
+  if (($i % 10) == 0) {
     // log_rd2("TIME: ".time());
     echo '_';
     flush();
index 808b020f662f29e1f1b084e87d230a3beffadf55..ea364cd9eba871edc86dc69fe13bd9db6dad972f 100644 (file)
@@ -192,7 +192,7 @@ else if ($user->stat == 'room') {
            
 //          ARRAY_POP DISABLED
 //         // CHECK
-//         while (array_pop($user_cur->comm) != NULL);
+           while (array_pop($user_cur->comm) != NULL);
 
            $ret = "";
            $ret .= sprintf('gst.st_loc++; gst.st=%d; createCookie("table_idx", %d, 24*365, cookiepath); createCookie("table_token", "%s", 24*365, cookiepath); the_end=true; window.onunload = null ; document.location.assign("briskin5/index.php");|', $user_cur->step+1, $table_idx, $table_token);