vpcd: Fix timeout calculation

Authored by Doug Engert <deengert@gmail.com>
This commit is contained in:
Jakub Jelen
2021-08-23 15:31:03 +02:00
parent f611240fba
commit 8d34ee42c7

View File

@@ -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;