fix typo / grammar

This commit is contained in:
Christian Ulrich 2020-11-07 12:31:24 +01:00
parent cfe24f70dc
commit 3fc54cb730
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@ proc getRelativeTimeout(ctx: QuicP2PContext): int32 =
if connTimeout < nextTimeout: if connTimeout < nextTimeout:
nextTimeout = connTimeout nextTimeout = connTimeout
if now < nextTimeout: if now < nextTimeout:
# calculate time until nexTimeout convert from microseconds to milliseconds # calculate time until nextTimeout and convert from microseconds to
# milliseconds
let delta = (nextTimeout - now) div 1_000 let delta = (nextTimeout - now) div 1_000
result = min(delta, int32.high).int32 result = min(delta, int32.high).int32