mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 08:54:53 +00:00
fixes nightlies regression (#24519)
follows up https://github.com/nim-lang/Nim/pull/24507
This commit is contained in:
@@ -1700,7 +1700,7 @@ proc drain*(timeout = 500) =
|
||||
let start = getMonoTime()
|
||||
while hasPendingOperations():
|
||||
discard runOnce(timeout - elapsed)
|
||||
elapsed = (getMonoTime() - start).inMilliseconds
|
||||
elapsed = int (getMonoTime() - start).inMilliseconds
|
||||
if elapsed >= timeout:
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user