From: Stefan Völkel Date: Mon, 25 Feb 2008 19:14:19 +0000 (+0100) Subject: rrdtool plugin: Simplified heartbeat calculation X-Git-Tag: collectd-4.2.5~10 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6f620e0af269915384fc6fbee8db0b475101d435;p=collectd.git rrdtool plugin: Simplified heartbeat calculation Looks simpler, should do the same. Signed-off-by: Florian Forster --- diff --git a/src/rrdtool.c b/src/rrdtool.c index 024b04e5..3bb5a9e7 100644 --- a/src/rrdtool.c +++ b/src/rrdtool.c @@ -1099,12 +1099,7 @@ static int rrd_init (void) if (stepsize < 0) stepsize = 0; if (heartbeat <= 0) - { - if (stepsize > 0) - heartbeat = 2 * stepsize; - else - heartbeat = 0; - } + heartbeat = 2 * stepsize; if ((heartbeat > 0) && (heartbeat < interval_g)) WARNING ("rrdtool plugin: Your `heartbeat' is "