From 35c8afe56b55906f1dd746582e083f06a85b7d5b Mon Sep 17 00:00:00 2001 From: ValKmjolnir Date: Mon, 17 Jun 2024 23:52:34 +0800 Subject: [PATCH] :fire: watchdog do not exist until edited --- src/nasal_opcode.cpp | 4 ++-- test/watchdog.nas | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nasal_opcode.cpp b/src/nasal_opcode.cpp index 3dc8030..51e4540 100644 --- a/src/nasal_opcode.cpp +++ b/src/nasal_opcode.cpp @@ -102,9 +102,9 @@ void codestream::dump(std::ostream& out) const { out << hex << "0x" << num << dec; break; case op_callb: out << hex << "0x" << num << dec; - out << " [" << natives[num].name << "@0x"; + out << " <" << natives[num].name << "@0x"; out << hex << reinterpret_cast(natives[num].func) << dec; - out << "]"; + out << ">"; break; case op_upval: case op_mupval: diff --git a/test/watchdog.nas b/test/watchdog.nas index 3f205e4..1e4360f 100644 --- a/test/watchdog.nas +++ b/test/watchdog.nas @@ -75,8 +75,8 @@ while(1) { # check if active every 0.5s var exited = false; - for(var t = 0; t<=4; t+=0.1) { - unix.sleep(0.1); + while(1) { + unix.sleep(0.5); if (!subprocess.active(subproc)) { exited = true; break;