summaryrefslogtreecommitdiff
path: root/ares_timeout.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-05-15 22:57:33 +0000
committerYang Tse <yangsita@gmail.com>2008-05-15 22:57:33 +0000
commit7cb1c3a21577f60cd041662ef0a0be72dd9cef5a (patch)
treea4aabd3ab4cf004832aceafbcad750dffbe5e26f /ares_timeout.c
parent6bf4d4e8436ec6a8478fa3db5cfbfb8e9b65665c (diff)
downloadc-ares-7cb1c3a21577f60cd041662ef0a0be72dd9cef5a.tar.gz
c-ares-7cb1c3a21577f60cd041662ef0a0be72dd9cef5a.tar.bz2
c-ares-7cb1c3a21577f60cd041662ef0a0be72dd9cef5a.zip
millisecond resolution support followup
Diffstat (limited to 'ares_timeout.c')
-rw-r--r--ares_timeout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ares_timeout.c b/ares_timeout.c
index ce98491..18ef6e8 100644
--- a/ares_timeout.c
+++ b/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