projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rrdtool plugin: Respect RandomTimeout while calling CacheFlush handler
[collectd.git]
/
src
/
rrdtool.c
diff --git
a/src/rrdtool.c
b/src/rrdtool.c
index
0f02ffc
..
dd2df0f
100644
(file)
--- a/
src/rrdtool.c
+++ b/
src/rrdtool.c
@@
-726,7
+726,7
@@
static int rrd_cache_insert(const char *filename, const char *value,
if ((cache_timeout > 0) &&
((cdtime() - cache_flush_last) > cache_flush_timeout))
- rrd_cache_flush(cache_timeout);
+ rrd_cache_flush(cache_timeout
+ random_timeout
);
pthread_mutex_unlock(&cache_lock);