vpcd: Fix timeout calculation
Authored by Doug Engert <deengert@gmail.com>
This commit is contained in:
@@ -200,7 +200,7 @@ SOCKET waitforclient(SOCKET server, long secs, long usecs)
|
|||||||
pfd.events = POLLIN;
|
pfd.events = POLLIN;
|
||||||
pfd.revents = 0;
|
pfd.revents = 0;
|
||||||
|
|
||||||
timeout = (secs * 1000000 + usecs / 1000);
|
timeout = (secs * 1000 + usecs / 1000);
|
||||||
|
|
||||||
if (poll(&pfd, 1, timeout) == -1)
|
if (poll(&pfd, 1, timeout) == -1)
|
||||||
return INVALID_SOCKET;
|
return INVALID_SOCKET;
|
||||||
|
|||||||
Reference in New Issue
Block a user