From 2e115e55c8ae6753c7e224a038411bd6df8bdd25 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@1533 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/src/rrd_daemon.c b/program/src/rrd_daemon.c index 18b71437..f1b8f8bb 100644 --- a/program/src/rrd_daemon.c +++ b/program/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.30.2