From 93d72cab018ddbdb35a03e450b5725a2a7e58eb6 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 26 Jan 2017 21:13:54 -0800 Subject: Fixes for BUS protocol in compat, test suite, and timing in compat tests. --- src/nng_compat.c | 2 +- src/nng_compat.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/nng_compat.c b/src/nng_compat.c index 3192a5f7..24085f30 100644 --- a/src/nng_compat.c +++ b/src/nng_compat.c @@ -734,7 +734,7 @@ nn_cmsg_next(struct nn_msghdr *mh, struct nn_cmsghdr *first) void nn_sleep(uint64_t msec) { - nng_usleep(msec / 1000); + nng_usleep(msec * 1000); } diff --git a/src/nng_compat.h b/src/nng_compat.h index aa0f5a2c..edf4bd6a 100644 --- a/src/nng_compat.h +++ b/src/nng_compat.h @@ -74,7 +74,7 @@ extern "C" { #define NN_PULL (NN_PROTO_PIPELINE * 16 + 1) #define NN_SURVEYOR (NN_PROTO_SURVEY * 16 + 2) #define NN_RESPONDENT (NN_PROTO_SURVEY * 16 + 3) -#define NN_BUS (NN_PROTO_BUS * 16 + 1) +#define NN_BUS (NN_PROTO_BUS * 16 + 0) #define NN_SOCKADDR_MAX 128 #define NN_SOL_SOCKET 0 -- cgit v1.2.3-70-g09d2