From: Matteo Nastasi (mop) Date: Sat, 22 Mar 2008 12:32:35 +0000 (+0000) Subject: speed doubled in index_rd.php and flush of command when the table start X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=2ae8dac72522528be1c05fea5de272555d5330cf;p=brisk.git speed doubled in index_rd.php and flush of command when the table start --- diff --git a/web/briskin5/index_rd.php b/web/briskin5/index_rd.php index 4bdb51f..d32d36c 100644 --- a/web/briskin5/index_rd.php +++ b/web/briskin5/index_rd.php @@ -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(); diff --git a/web/index_rd.php b/web/index_rd.php index 526ca34..288415c 100644 --- a/web/index_rd.php +++ b/web/index_rd.php @@ -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(); diff --git a/web/index_wr.php b/web/index_wr.php index 808b020..ea364cd 100644 --- a/web/index_wr.php +++ b/web/index_wr.php @@ -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);