mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
millisecond resolution support followup
This commit is contained in:
parent
ade57a781c
commit
164a985115
@ -110,7 +110,7 @@ int ares__timedout(struct timeval *now,
|
||||
|
||||
if(secs > 0)
|
||||
return 1; /* yes, timed out */
|
||||
if(secs < -1)
|
||||
if(secs < 0)
|
||||
return 0; /* nope, not timed out */
|
||||
|
||||
/* if the full seconds were identical, check the sub second parts */
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user