rrdtool plugin: unsigned value can't be negative
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 24 Jul 2016 11:26:19 +0000 (13:26 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 24 Jul 2016 11:30:26 +0000 (13:30 +0200)
src/rrdtool.c

index 21b01d9..348f287 100644 (file)
@@ -688,7 +688,7 @@ static int64_t rrd_get_random_variation (void)
   long min;
   long max;
 
-  if (random_timeout <= 0)
+  if (random_timeout == 0)
     return (0);
 
   /* Assure that "cache_timeout + random_variation" is never negative. */