Commit e1c596b3 authored by Martin Hurton's avatar Martin Hurton

Make sure lwm > 0 when hwm > 0

parent 5b1a6a4b
......@@ -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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment