From 0b396959fdd527d9fce74e443a7b9185bff66431 Mon Sep 17 00:00:00 2001 From: Rostislav Lisovy Date: Thu, 19 Jul 2012 17:34:23 +0200 Subject: [PATCH] Fix in milliseconds to struct timeval conversion Signed-off-by: Rostislav Lisovy Signed-off-by: Johannes Schindelin --- libvncclient/tls_openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvncclient/tls_openssl.c b/libvncclient/tls_openssl.c index b6df946..529d476 100644 --- a/libvncclient/tls_openssl.c +++ b/libvncclient/tls_openssl.c @@ -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);