diff options
author | Rostislav Lisovy <[email protected]> | 2012-07-19 17:34:23 +0200 |
---|---|---|
committer | Johannes Schindelin <[email protected]> | 2012-07-20 13:14:18 -0500 |
commit | 0b396959fdd527d9fce74e443a7b9185bff66431 (patch) | |
tree | aae2a972006295786af06bc36821c9fff47d9e4e | |
parent | af614dea112593f3a01e5c75274cd5912d93bf90 (diff) | |
download | libtdevnc-0b396959fdd527d9fce74e443a7b9185bff66431.tar.gz libtdevnc-0b396959fdd527d9fce74e443a7b9185bff66431.zip |
Fix in milliseconds to struct timeval conversion
Signed-off-by: Rostislav Lisovy <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
-rw-r--r-- | libvncclient/tls_openssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |