write_graphite: send_buf_fill is unsigned
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 08:38:35 +0000 (10:38 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 08:38:35 +0000 (10:38 +0200)
[src/write_graphite.c:183]: (style) Checking if unsigned variable 'send_buf_fill' is less than zero.

src/write_graphite.c

index 0fa8bc3..0b8ab41 100644 (file)
@@ -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);