1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-17 12:53:54 +02:00
openwrt-packages/utils/collectd/patches/300-delay-first-read-cycle.patch
Hannu Nyman 08d759f14a collectd: update to 5.9.0
Update collectd to version 5.9.0

* remove backported upstream patches (sensors, modbus)
* remove lua patch that has been been implemented upstream
  (See collectd PR 3144)
* refresh patches and accommodate into upstream path changes
* place the 'stations' datatype for iwinfo in alpbetically
  correct place in types.db
* add libmnl dependency to 'processes' plugin required for the
  new Linux process Delay Accounting capability.
  (Alternatively the capability & requirement might be patched away
   in Makefile.am, HAVE_LIBTASKSTATS from collectd_4ea7a572)

* new plugins (disabled): ampq1, gpu_nvidia, pcie_errors,
                          write_stackdriver, write_syslog

compile-tested: ar71xx/WNDR3700 (all plugins)
run-tested: ar71xx/WNDR3700 (selected plugins)

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2019-06-16 22:18:04 +03:00

12 lines
345 B
Diff

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