提交 397ec5ae authored 作者: Anthony Minessale's avatar Anthony Minessale

fix jb bug where once its full size it will never shrink due to logic err

上级 f7210b24
...@@ -270,7 +270,7 @@ stfu_status_t _stfu_n_resize(stfu_instance_t *i, int32_t qlen, int line) ...@@ -270,7 +270,7 @@ stfu_status_t _stfu_n_resize(stfu_instance_t *i, int32_t qlen, int line)
stfu_status_t s; stfu_status_t s;
int32_t incr = qlen; int32_t incr = qlen;
if (i->qlen == i->max_qlen) { if (incr > 0 && i->qlen == i->max_qlen) {
return STFU_IT_FAILED; return STFU_IT_FAILED;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论