summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0a5bd9f)
raw | patch | inline | side by side (parent: 0a5bd9f)
author | Stefan Völkel <bd@bc-bd.org> | |
Mon, 25 Feb 2008 19:14:19 +0000 (20:14 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Tue, 26 Feb 2008 11:19:54 +0000 (12:19 +0100) |
Looks simpler, should do the same.
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/rrdtool.c | patch | blob | history |
diff --git a/src/rrdtool.c b/src/rrdtool.c
index 024b04e5e928a11daaeb6edb31d0a985a8c1af4d..3bb5a9e7ede71ed45b87f09fa3dd2424a305b850 100644 (file)
--- a/src/rrdtool.c
+++ b/src/rrdtool.c
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 "