From 0c9be2d10c48975f490bd7f00c6fb3eff1984ae0 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 23 Apr 2016 10:38:35 +0200 Subject: [PATCH] write_graphite: send_buf_fill is unsigned [src/write_graphite.c:183]: (style) Checking if unsigned variable 'send_buf_fill' is less than zero. --- src/write_graphite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/write_graphite.c b/src/write_graphite.c index 0fa8bc32..0b8ab41c 100644 --- a/src/write_graphite.c +++ b/src/write_graphite.c @@ -180,7 +180,7 @@ static int wg_flush_nolock (cdtime_t timeout, struct wg_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.11.0