diff options
author | Johannes Schindelin <[email protected]> | 2014-09-02 16:49:04 +0200 |
---|---|---|
committer | Johannes Schindelin <[email protected]> | 2014-09-02 16:53:05 +0200 |
commit | 8d2db0486dcc167f1b02d4454ebf4624ce03e1de (patch) | |
tree | 431020c5a2fe2d0371bebc19de8d778e6a63fcb5 /libvncclient | |
parent | 70783a4d60086f1a706bbbd8dedbc3b31a4a19a0 (diff) | |
download | libtdevnc-8d2db0486dcc167f1b02d4454ebf4624ce03e1de.tar.gz libtdevnc-8d2db0486dcc167f1b02d4454ebf4624ce03e1de.zip |
Fix tv_usec calculation
This bug was introduced in the MSVC patches.
Signed-off-by: Johannes Schindelin <[email protected]>
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 669913d..00d031d 100644 --- a/libvncclient/tls_openssl.c +++ b/libvncclient/tls_openssl.c @@ -222,7 +222,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); |