📝 adjust test files

This commit is contained in:
ValKmjolnir
2024-08-03 17:07:32 +08:00
parent 99298b86ab
commit 52dfd52f39
2 changed files with 55 additions and 2 deletions
+2 -2
View File
@@ -37,11 +37,11 @@ var cpu_occupation = func() {
while(1) {
var cpu0 = cpu_stat();
if (first_in) {
unix.sleep(0.1);
unix.sleep(0.05);
first_in = 0;
} else {
for(var i = 0; i < 10; i += 1) {
unix.sleep(0.1);
unix.sleep(0.05);
coroutine.yield(nil);
}
}