Skip to content

Commit 8ae3e47

Browse files
committed
Fix MagicStack#233, round delay in call_later()
1 parent 7a4f00a commit 8ae3e47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uvloop/loop.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,7 @@ cdef class Loop:
12541254
# infinity for a Python application.
12551255
delay = 3600 * 24 * 365 * 100
12561256

1257-
when = <uint64_t>(delay * 1000)
1257+
when = <uint64_t>round(delay * 1000)
12581258
if not args:
12591259
args = None
12601260
if when == 0:

0 commit comments

Comments
 (0)