X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fwrite_http.c;h=aea7935200ce1b5af13e8243b3bb42749cf35129;hb=4511e92b464cb3451297872fd00e039d59984573;hp=9a4051176bf9c40bba5c9f877d838727f9c17283;hpb=ff9e11ade5cfabf32c63fb19fc76cbbc4186bc5b;p=collectd.git diff --git a/src/write_http.c b/src/write_http.c index 9a405117..aea79352 100644 --- a/src/write_http.c +++ b/src/write_http.c @@ -26,13 +26,8 @@ #include "collectd.h" #include "plugin.h" #include "common.h" -#include "utils_cache.h" #include "utils_format_json.h" -#if HAVE_PTHREAD_H -# include -#endif - #include #ifndef WRITE_HTTP_DEFAULT_BUFFER_SIZE @@ -240,7 +235,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);