From bff07409f3d0ef5d6c31f2b4b9aff243de95f09a Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sun, 24 Jul 2016 13:26:19 +0200 Subject: [PATCH] rrdtool plugin: unsigned value can't be negative --- src/rrdtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rrdtool.c b/src/rrdtool.c index 21b01d93..348f2876 100644 --- a/src/rrdtool.c +++ b/src/rrdtool.c @@ -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. */ -- 2.11.0