X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Ftest-hs-rd.php;fp=web%2Ftest-hs-rd.php;h=d9a086702aa7193a4f412dec5c7bb6444fd60523;hb=f204bcec7746f916c356f31dbe814a865c37dd0d;hp=4f13f241ea03693095a78ce88949717d8b2f2c0d;hpb=96bbb17199b46f950641216411daa2f74a6e2f12;p=xynt.git
diff --git a/web/test-hs-rd.php b/web/test-hs-rd.php
index 4f13f24..d9a0867 100644
--- a/web/test-hs-rd.php
+++ b/web/test-hs-rd.php
@@ -4,7 +4,6 @@
@@ -20,24 +19,28 @@ function mop_flush()
function main()
{
+ GLOBAL $st;
+
$s = "";
for ($i = 0 ; $i < 4096 ; $i++) {
$s .= rand(65,90);
}
- for ($i = 0 ; $i < 15 ; $i++) {
+
+ $to = rand(10,20);
+ for ($first = true, $i = $st+1 ; $i < $st+$to ; $i++, $first = false) {
// if ($i == 0)
// sleep(1);
if ($i != 8 || true) {
printf("", $i, ($i == 0 ? "
" : ""), $i);
+push(\"$('cont').innerHTML += '%s %d'; gst.st = %d;\");
+", $i, ($first ? "
" : ""), $i, $i);
}
else {
// exit();
// sleep(30);
}
- if ($i == 0)
+ if ($first)
printf("", $s);
mop_flush();
usleep(1000000);