rrdtool plugin: Remove excessive complain
authorPavel Rochnyack <pavel2000@ngs.ru>
Mon, 17 Jul 2017 04:15:52 +0000 (11:15 +0700)
committerFlorian Forster <octo@collectd.org>
Thu, 20 Jul 2017 05:55:58 +0000 (07:55 +0200)
The plugin complains `Adjusting "RandomTimeout" to 0.000 seconds.` even
if no 'CacheTimeout' was set.

src/rrdtool.c

index 84fccef..f09d602 100644 (file)
@@ -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;