diff options
author | Yang Tse <yangsita@gmail.com> | 2008-05-15 22:57:33 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-05-15 22:57:33 +0000 |
commit | 7cb1c3a21577f60cd041662ef0a0be72dd9cef5a (patch) | |
tree | a4aabd3ab4cf004832aceafbcad750dffbe5e26f /ares_timeout.c | |
parent | 6bf4d4e8436ec6a8478fa3db5cfbfb8e9b65665c (diff) | |
download | c-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.c | 4 |
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 |