diff options
author | Rostislav Lisovy <lisovy@gmail.com> | 2012-07-19 17:34:23 +0200 |
---|---|---|
committer | Johannes Schindelin <johannes.schindelin@gmx.de> | 2012-07-20 13:14:18 -0500 |
commit | 0b396959fdd527d9fce74e443a7b9185bff66431 (patch) | |
tree | aae2a972006295786af06bc36821c9fff47d9e4e /libvncclient | |
parent | af614dea112593f3a01e5c75274cd5912d93bf90 (diff) | |
download | libtdevnc-0b396959fdd527d9fce74e443a7b9185bff66431.tar.gz libtdevnc-0b396959fdd527d9fce74e443a7b9185bff66431.zip |
Fix in milliseconds to struct timeval conversion
Signed-off-by: Rostislav Lisovy <lisovy@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'libvncclient')
-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); |