summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorspv420 <unomilliono@gmail.com>2022-04-24 08:07:27 -0400
committerspv420 <unomilliono@gmail.com>2022-04-24 08:07:27 -0400
commitc147222514a38ec2f00d36573a1ff7a5450836c6 (patch)
treedb2de27f29da15673b931f9bd819b320135e7292 /src
parent6629087592fc928382dcf9a9a8bb9c2c0c85fc4c (diff)
professional commit message
Diffstat (limited to 'src')
-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);
}
}