mirror of
https://github.com/zeromq/libzmq.git
synced 2025-02-20 22:31:34 +01:00
Make sure lwm > 0 when hwm > 0
This commit is contained in:
parent
5b1a6a4bea
commit
e1c596b37e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user