Code

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 21b01d93568a8946f300443f28ac4bbeec9a0082..348f28762c364d03b527cb9b04bfc71b54c69533 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. */