diff options
author | jestor <jestor@gmail.com> | 2014-05-08 14:32:35 +1200 |
---|---|---|
committer | jestor <jestor@gmail.com> | 2014-05-08 14:32:35 +1200 |
commit | 932de5ff045353ed7ca83810fe088a0f58cf1d33 (patch) | |
tree | 7c1cec64557ffff21123eacfb5fd97255066ad63 | |
parent | a78aa8ab906c97dc3f4123048519a2953fa96fb2 (diff) | |
download | rabbitmq-c-github-ask-932de5ff045353ed7ca83810fe088a0f58cf1d33.tar.gz |
Fixed timeval to milliseconds calculation error
milliseconds = seconds * 1000 + microseconds / 1000
-rw-r--r-- | librabbitmq/amqp_socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/librabbitmq/amqp_socket.c b/librabbitmq/amqp_socket.c index 6e54f7e..105b9b2 100644 --- a/librabbitmq/amqp_socket.c +++ b/librabbitmq/amqp_socket.c @@ -575,7 +575,7 @@ static int recv_with_timeout(amqp_connection_state_t state, uint64_t start, stru pfd.revents = 0; timeout_ms = timeout->tv_sec * AMQP_MS_PER_S + - timeout->tv_usec * AMQP_US_PER_MS; + timeout->tv_usec / AMQP_US_PER_MS; res = poll(&pfd, 1, timeout_ms); |