SmartAudio/package/utils/collectd/patches/300-delay-first-read-cycle....

12 lines
342 B
Diff
Raw Normal View History

2018-07-13 01:31:50 +00:00
--- 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);