X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fwrite_tsdb.c;h=2bd27072398541c124016f1c6e97fc8c26936726;hb=21ab7512825cf8177d5eee5101344b45d0854610;hp=0fa6245212fa5311c535b16c9eebec40ff4666c0;hpb=10b10a6718dbb87c6890d4bc821a6e21c8b7b527;p=collectd.git diff --git a/src/write_tsdb.c b/src/write_tsdb.c index 0fa62452..2bd27072 100644 --- a/src/write_tsdb.c +++ b/src/write_tsdb.c @@ -48,7 +48,6 @@ #include "utils_cache.h" -#include #include #ifndef WT_DEFAULT_NODE @@ -142,7 +141,7 @@ static int wt_flush_nolock(cdtime_t timeout, struct wt_callback *cb) return 0; } - if (cb->send_buf_fill <= 0) + if (cb->send_buf_fill == 0) { cb->send_buf_init_time = cdtime(); return 0;