From 9c16fa32204f4f0216641acde8e0fdcfb9491361 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 23 Apr 2016 10:35:23 +0200 Subject: [PATCH] write_tsdb plugin: send_buf_fill can't be < 0 [src/write_tsdb.c:145]: (style) Checking if unsigned variable 'send_buf_fill' is less than zero. --- src/write_tsdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/write_tsdb.c b/src/write_tsdb.c index 0fa62452..46028ba1 100644 --- a/src/write_tsdb.c +++ b/src/write_tsdb.c @@ -142,7 +142,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; -- 2.30.2