Merge pull request #1766 from hnyman/fix-collectd-dns

collectd: Delay first data read cycle by 1s
This commit is contained in:
Steven Barth 2015-10-13 08:52:39 +02:00
commit 0f6e674a62
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
--- a/src/daemon/plugin.c
+++ b/src/daemon/plugin.c
@@ -1149,7 +1149,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);