X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Ftest-hs-rd.php;h=95aa3df435be617443e8a4346649ea8129ed8696;hb=HEAD;hp=67bc876e32b87d99fc7c205c50ca43a38e112888;hpb=865cb740c39d77fdb20de3a9964be205491bee21;p=xynt.git diff --git a/web/test-hs-rd.php b/web/test-hs-rd.php index 67bc876..95aa3df 100644 --- a/web/test-hs-rd.php +++ b/web/test-hs-rd.php @@ -1,13 +1,3 @@ - - - - + + + + + + + + - parent.allmythings = %d; - console.log(\"zorro \"+parent.allmythings); + GLOBAL $st, $s; + + $fp = fopen("/tmp/test-hs-rd.log", "a"); + fwrite($fp, "START [$s] $st\n"); + fclose($fp); + + echo("\n"); + mop_flush(); - ", $i, $i); + $to = rand(10,20); + for ($first = true, $i = $st+1 ; $i < $st+$to ; $i++, $first = false) { + if ($i == 8 /*+$st*/) { + // exit(); + if ($first == true) { + sleep(5); + } + else { + // exit(); + sleep(30); + } + } + + if ($i > 10 && $i < 20) { + printf("", $i, $i); } else { - printf("", $i, $i); + printf("", $i, ($first ? "
" : ""), $i, $i); } - if ($i == 0) - printf("", $s); + mop_flush(); usleep(1000000); } } main(); ?> - - - \ No newline at end of file