Code

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 84fcceff9d76d3217ad0dbc110a8ca6ec9ee9953..f09d6024a3a985693d82fcea25a4f381a734a98f 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;