aboutsummaryrefslogtreecommitdiff
path: root/utils/collectd/patches/300-delay-first-read-cycle.patch
blob: d4eb8266681cd4b726a1ad4eee97453f530a3c09 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/daemon/plugin.c
+++ b/src/daemon/plugin.c
@@ -1092,7 +1092,7 @@ static int plugin_insert_read(read_func_
   int status;
   llentry_t *le;
 
-  rf->rf_next_read = cdtime();
+  rf->rf_next_read = cdtime() + (cdtime_t) 1073741824; //delay first read 1s
   rf->rf_effective_interval = rf->rf_interval;
 
   pthread_mutex_lock(&read_lock);