300-delay-first-read-cycle.patch 342 B

1234567891011
  1. --- a/src/daemon/plugin.c
  2. +++ b/src/daemon/plugin.c
  3. @@ -1149,7 +1149,7 @@ static int plugin_insert_read (read_func
  4. int status;
  5. llentry_t *le;
  6. - rf->rf_next_read = cdtime ();
  7. + rf->rf_next_read = cdtime () + (cdtime_t) 1073741824; //delay first read 1s
  8. rf->rf_effective_interval = rf->rf_interval;
  9. pthread_mutex_lock (&read_lock);