X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fwrite_http.c;h=8dd37c45ad189e2dfbf4265410d37a5b96382bb6;hb=21058a13ed34ade6d2de0f54e4216b255d033af1;hp=9a4051176bf9c40bba5c9f877d838727f9c17283;hpb=ff9e11ade5cfabf32c63fb19fc76cbbc4186bc5b;p=collectd.git diff --git a/src/write_http.c b/src/write_http.c index 9a405117..8dd37c45 100644 --- a/src/write_http.c +++ b/src/write_http.c @@ -240,7 +240,7 @@ static int wh_flush_nolock (cdtime_t timeout, wh_callback_t *cb) /* {{{ */ if (cb->format == WH_FORMAT_COMMAND) { - if (cb->send_buffer_fill <= 0) + if (cb->send_buffer_fill == 0) { cb->send_buffer_init_time = cdtime (); return (0);