summaryrefslogtreecommitdiff
path: root/lib/std/resolve+posixy.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/resolve+posixy.myr')
-rw-r--r--lib/std/resolve+posixy.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/resolve+posixy.myr b/lib/std/resolve+posixy.myr
index 06250d5..8fa8352 100644
--- a/lib/std/resolve+posixy.myr
+++ b/lib/std/resolve+posixy.myr
@@ -333,7 +333,7 @@ const rquery = {srv, host, id
pfd = [
[.fd=srv, .events=sys.Pollin, .revents=0]
][:]
- r = sys.poll(pfd[:], (std.now() - giveup : int)/1000)
+ r = sys.poll(pfd[:], (giveup - std.now() : int)/1000)
if r < 0
-> `Err `Badconn
elif r == 0