summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 027646f)
raw | patch | inline | side by side (parent: 027646f)
author | Thorsten von Eicken <tve@voneicken.com> | |
Sun, 30 Mar 2008 17:16:20 +0000 (19:16 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 30 Mar 2008 17:16:20 +0000 (19:16 +0200) |
When creating an RRD file, the rrdtool plugin doesn't do what it's supposed to
do. Instead of creating 5 RRAs it creates 4 and in doing so it skips the first
one. The result is about 2x the number of datapoints total. The fix below works
for me. It's for 4.2.2 but it looks like this hasn't changed in the latest 4.3
beta.
Resolves: #5
do. Instead of creating 5 RRAs it creates 4 and in doing so it skips the first
one. The result is about 2x the number of datapoints total. The fix below works
for me. It's for 4.2.2 but it looks like this hasn't changed in the latest 4.3
beta.
Resolves: #5
src/rrdtool.c | patch | blob | history |
diff --git a/src/rrdtool.c b/src/rrdtool.c
index ab245241146593fb278e5a3ac5a343020cedef25..93c9d7a8ac670897747a3f6231bd5f2f8df34de1 100644 (file)
--- a/src/rrdtool.c
+++ b/src/rrdtool.c
span = rts[i];
if ((span / ss) < rrarows)
- continue;
+ span = ss * rrarows;
if (cdp_len == 0)
cdp_len = 1;