X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Frrdtool.c;h=348f28762c364d03b527cb9b04bfc71b54c69533;hb=240a0b30cd9a478589ed00465bc081f810da05a9;hp=3cd6d6bb6807b842407f79e5760c4708d78a9a0e;hpb=12f249b209d7fa31e3a9d53315e47a2342463e0f;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. */