X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrdtool.c;h=348f28762c364d03b527cb9b04bfc71b54c69533;hb=5afde1077e3c8fc119b79caa2572cbf84dbfe5ca;hp=21b01d93568a8946f300443f28ac4bbeec9a0082;hpb=290741f2e6de9e9b467463c1f0c6f031c4036428;p=collectd.git 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. */