From 538086ef0bac2d41ec6a00177c2028baae265daa Mon Sep 17 00:00:00 2001 From: oetiker Date: Sun, 28 Sep 2008 19:10:15 +0000 Subject: [PATCH] When -z is specified, some updates may be timestamped up to seconcds in the future. Therefore, a timeout of now+1 may not be sufficient. Set abs_timeout past the point where any updates are currently specified. -- kevin brintnall git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1533 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c index 18b7143..f1b8f8b 100644 --- a/src/rrd_daemon.c +++ b/src/rrd_daemon.c @@ -500,7 +500,7 @@ static int flush_old_values (int max_age) if (max_age > 0) cfd.abs_timeout = cfd.now - max_age; else - cfd.abs_timeout = cfd.now + 1; + cfd.abs_timeout = cfd.now + 2*config_write_jitter + 1; /* `tree_callback_flush' will return the keys of all values that haven't * been touched in the last `config_flush_interval' seconds in `cfd'. -- 2.11.0