Skip to content
Snippets Groups Projects
Commit 7bf5f6e0 authored by Marc Hoersken's avatar Marc Hoersken
Browse files

sockfilt.c: fix calculation of sleep timeout on Windows

Not converting to double caused small timeouts to be skipped.
parent 520bd9e4
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment