summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/js/main.js4
-rw-r--r--src/js/primitives/call.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/js/main.js b/src/js/main.js
index 4c5ca98..908b582 100644
--- a/src/js/main.js
+++ b/src/js/main.js
@@ -48,8 +48,8 @@ function main() {
var i = 0;
while (true) {
- syslog(LOG_SYSLOG, "get rekt from jsc %d (slide=%x)\n", i, slide);
- sleep(1);
+ scall("printf", "get rekt from jsc %d (slide=%x)\n", i, slide);
+ sleep(0);
i++;
}
diff --git a/src/js/primitives/call.js b/src/js/primitives/call.js
index 419875f..af9ede0 100644
--- a/src/js/primitives/call.js
+++ b/src/js/primitives/call.js
@@ -199,7 +199,7 @@ function callnarg() {
* probably un-necessary now, keeping in just in case for now
*/
calls4arg("thread_resume", read_u32(th), 0, 0, 0);
- calls4arg("usleep", 10000, 0, 0, 0);
+ calls4arg("usleep", 1000, 0, 0, 0);
/*
* spin wait for return
@@ -220,7 +220,7 @@ function callnarg() {
return read_u32(thread_state);
}
- calls4arg("usleep", 10000, 0, 0, 0);
+ calls4arg("usleep", 1000, 0, 0, 0);
}
}