diff options
Diffstat (limited to 'ares/ares_timeout.c')
-rw-r--r-- | ares/ares_timeout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ares/ares_timeout.c b/ares/ares_timeout.c index ce9849153..18ef6e8ca 100644 --- a/ares/ares_timeout.c +++ b/ares/ares_timeout.c @@ -64,8 +64,8 @@ struct timeval *ares_timeout(ares_channel channel, struct timeval *maxtv, } if(min_offset != -1) { - nextstop = now; - ares__timeadd(&now, min_offset); + nextstop.tv_sec = min_offset/1000; + nextstop.tv_usec = (min_offset%1000)*1000; } /* If we found a minimum timeout and it's sooner than the one specified in |