From: Ruben Kerkhof Date: Sun, 24 Jul 2016 11:26:19 +0000 (+0200) Subject: rrdtool plugin: unsigned value can't be negative X-Git-Tag: collectd-5.6.0~179 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bff07409f3d0ef5d6c31f2b4b9aff243de95f09a;p=collectd.git rrdtool plugin: unsigned value can't be negative --- 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. */