Skip to content

Commit

Permalink
vpcd: Fix timeout calculation
Browse files Browse the repository at this point in the history
Authored by Doug Engert <[email protected]>
  • Loading branch information
Jakuje committed Aug 23, 2021
1 parent f611240 commit 8d34ee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtualsmartcard/src/vpcd/vpcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ SOCKET waitforclient(SOCKET server, long secs, long usecs)
pfd.events = POLLIN;
pfd.revents = 0;

timeout = (secs * 1000000 + usecs / 1000);
timeout = (secs * 1000 + usecs / 1000);

if (poll(&pfd, 1, timeout) == -1)
return INVALID_SOCKET;
Expand Down

0 comments on commit 8d34ee4

Please sign in to comment.