commit 0f6e674a622dc9dcc88deaa821d1a90cea0c1bf9 parent ea9db94b7a1e04a023f43bd2e575864dcb841ecc Author: Steven Barth <steven@midlink.org> Date: Tue, 13 Oct 2015 08:52:39 +0200 Merge pull request #1766 from hnyman/fix-collectd-dns collectd: Delay first data read cycle by 1s Diffstat:
| A | utils/collectd/patches/300-delay-first-read-cycle.patch | | | 12 | ++++++++++++ |
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/utils/collectd/patches/300-delay-first-read-cycle.patch b/utils/collectd/patches/300-delay-first-read-cycle.patch @@ -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); +