From 6f620e0af269915384fc6fbee8db0b475101d435 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20V=C3=B6lkel?= Date: Mon, 25 Feb 2008 20:14:19 +0100 Subject: [PATCH] rrdtool plugin: Simplified heartbeat calculation Looks simpler, should do the same. Signed-off-by: Florian Forster --- src/rrdtool.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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 " -- 2.11.0