Skip to content

Commit 8d2db04

Browse files
committed
Fix tv_usec calculation
This bug was introduced in the MSVC patches. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 70783a4 commit 8d2db04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libvncclient/tls_openssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ static int sock_read_ready(SSL *ssl, uint32_t ms)
222222
FD_SET(SSL_get_fd(ssl), &fds);
223223

224224
tv.tv_sec = ms / 1000;
225-
tv.tv_usec = (ms % 1000) * ms;
225+
tv.tv_usec = (ms % 1000) * 1000;
226226

227227
r = select (SSL_get_fd(ssl) + 1, &fds, NULL, NULL, &tv);
228228

0 commit comments

Comments
 (0)