Skip to content

Commit 2412519

Browse files
committed
uasyncio.core: Convert Sleep syscall arg (seconds) to milliseconds.
1 parent 222758f commit 2412519

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uasyncio.core/uasyncio/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def run_forever(self):
8686
if isinstance(ret, SysCall1):
8787
arg = ret.arg
8888
if isinstance(ret, Sleep):
89-
delay = arg
89+
delay = int(arg * 1000)
9090
elif isinstance(ret, IORead):
9191
# self.add_reader(ret.obj.fileno(), lambda self, c, f: self.call_soon(c, f), self, cb, ret.obj)
9292
# self.add_reader(ret.obj.fileno(), lambda c, f: self.call_soon(c, f), cb, ret.obj)

0 commit comments

Comments
 (0)