X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrdtool.c;h=348f28762c364d03b527cb9b04bfc71b54c69533;hb=5afde1077e3c8fc119b79caa2572cbf84dbfe5ca;hp=3cd6d6bb6807b842407f79e5760c4708d78a9a0e;hpb=c11a279ed19722816ccc56537a7d928ed06c6bab;p=collectd.git diff --git a/src/rrdtool.c b/src/rrdtool.c index 3cd6d6bb..348f2876 100644 --- a/src/rrdtool.c +++ b/src/rrdtool.c @@ -32,10 +32,6 @@ #include -#if HAVE_PTHREAD_H -# include -#endif - /* * Private types */ @@ -692,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. */