diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pipe.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pipe.cpp b/src/pipe.cpp index b5c656d..e2c3c4d 100644 --- a/src/pipe.cpp +++ b/src/pipe.cpp @@ -341,6 +341,6 @@ uint64_t zmq::pipe_t::compute_lwm (uint64_t hwm_) if (hwm_ > max_wm_delta * 2) return hwm_ - max_wm_delta; else - return hwm_ / 2; + return (hwm_ + 1) / 2; } |