Commit 0b396959 authored by Rostislav Lisovy's avatar Rostislav Lisovy Committed by Johannes Schindelin

Fix in milliseconds to struct timeval conversion

Signed-off-by: 's avatarRostislav Lisovy <lisovy@gmail.com>
Signed-off-by: 's avatarJohannes Schindelin <johannes.schindelin@gmx.de>
parent af614dea
...@@ -194,7 +194,7 @@ static int sock_read_ready(SSL *ssl, uint32_t ms) ...@@ -194,7 +194,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