From 7cb1c3a21577f60cd041662ef0a0be72dd9cef5a Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 15 May 2008 22:57:33 +0000 Subject: millisecond resolution support followup --- ares_timeout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ares_timeout.c') 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 -- cgit v1.2.3