Fix in milliseconds to struct timeval conversion

Signed-off-by: Rostislav Lisovy <lisovy@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
pull/1/head
Rostislav Lisovy 12 years ago committed by Johannes Schindelin
parent af614dea11
commit 0b396959fd

@ -194,7 +194,7 @@ static int sock_read_ready(SSL *ssl, uint32_t ms)
FD_SET(SSL_get_fd(ssl), &fds);
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);

Loading…
Cancel
Save