fixes nightlies regression (#24519)

follows up https://github.com/nim-lang/Nim/pull/24507
This commit is contained in:
ringabout
2024-12-07 13:35:47 +08:00
committed by GitHub
parent 801733f286
commit d408b94063

View File

@@ -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