mirror of
https://github.com/curl/curl.git
synced 2026-05-30 09:07:33 +03:00
sockfilt.c: fix calculation of sleep timeout on Windows
Not converting to double caused small timeouts to be skipped.
This commit is contained in:
parent
520bd9e49f
commit
7bf5f6e054
1 changed files with 1 additions and 1 deletions
|
|
@ -696,7 +696,7 @@ static int select_ws(int nfds, fd_set *readfds, fd_set *writefds,
|
|||
|
||||
/* check if we got descriptors, sleep in case we got none */
|
||||
if(!nfds) {
|
||||
Sleep((timeout->tv_sec * 1000) + (timeout->tv_usec / 1000));
|
||||
Sleep((timeout->tv_sec*1000)+(DWORD)(((double)timeout->tv_usec)/1000.0));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue