Commit 8d2db048 authored by Johannes Schindelin's avatar Johannes Schindelin

Fix tv_usec calculation

This bug was introduced in the MSVC patches.
Signed-off-by: 's avatarJohannes Schindelin <johannes.schindelin@gmx.de>
parent 70783a4d
...@@ -222,7 +222,7 @@ static int sock_read_ready(SSL *ssl, uint32_t ms) ...@@ -222,7 +222,7 @@ static int sock_read_ready(SSL *ssl, uint32_t ms)
FD_SET(SSL_get_fd(ssl), &fds); FD_SET(SSL_get_fd(ssl), &fds);
tv.tv_sec = ms / 1000; tv.tv_sec = ms / 1000;
tv.tv_usec = (ms % 1000) * ms; tv.tv_usec = (ms % 1000) * 1000;
r = select (SSL_get_fd(ssl) + 1, &fds, NULL, NULL, &tv); r = select (SSL_get_fd(ssl) + 1, &fds, NULL, NULL, &tv);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment