diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/nng_compat.c | 2 | ||||
| -rw-r--r-- | src/nng_compat.h | 2 |
2 files changed, 2 insertions, 2 deletions
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 |
