From: Pavel Rochnyack Date: Mon, 17 Jul 2017 04:15:52 +0000 (+0700) Subject: rrdtool plugin: Remove excessive complain X-Git-Tag: collectd-5.6.3~14 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=c1facb5733721a14454f41bab2b97f8c8ceffc8e;p=collectd.git rrdtool plugin: Remove excessive complain The plugin complains `Adjusting "RandomTimeout" to 0.000 seconds.` even if no 'CacheTimeout' was set. --- diff --git a/src/rrdtool.c b/src/rrdtool.c index 84fcceff..f09d6024 100644 --- a/src/rrdtool.c +++ b/src/rrdtool.c @@ -87,7 +87,7 @@ static rrdcreate_config_t rrdcreate_config = { * ALWAYS lock `cache_lock' first! */ static cdtime_t cache_timeout = 0; static cdtime_t cache_flush_timeout = 0; -static cdtime_t random_timeout = TIME_T_TO_CDTIME_T(1); +static cdtime_t random_timeout = 0; static cdtime_t cache_flush_last; static c_avl_tree_t *cache = NULL; static pthread_mutex_t cache_lock = PTHREAD_MUTEX_INITIALIZER;