mirror of
https://github.com/curl/curl.git
synced 2025-02-23 15:10:03 +08:00
tests first.c: fix calculation of sleep timeout on Windows
Not converting to double caused small timeouts to be skipped.
This commit is contained in:
parent
24cf20ec68
commit
520bd9e49f
@ -56,7 +56,7 @@ int select_wrapper(int nfds, fd_set *rd, fd_set *wr, fd_set *exc,
|
|||||||
* select() can not be used to sleep without a single fd_set.
|
* select() can not be used to sleep without a single fd_set.
|
||||||
*/
|
*/
|
||||||
if(!nfds) {
|
if(!nfds) {
|
||||||
Sleep(1000*tv->tv_sec + tv->tv_usec/1000);
|
Sleep((1000*tv->tv_sec) + (DWORD)(((double)tv->tv_usec)/1000.0));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user