From e8871c4de3f5f070efe3461a1362ccee4d5dec58 Mon Sep 17 00:00:00 2001 From: Thorsten von Eicken Date: Sun, 30 Mar 2008 19:16:20 +0200 Subject: [PATCH] rrdtool plugin: Reduce the filesize of files created per default. 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 --- src/rrdtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rrdtool.c b/src/rrdtool.c index ab245241..93c9d7a8 100644 --- a/src/rrdtool.c +++ b/src/rrdtool.c @@ -195,7 +195,7 @@ static int rra_get (char ***ret, const value_list_t *vl) span = rts[i]; if ((span / ss) < rrarows) - continue; + span = ss * rrarows; if (cdp_len == 0) cdp_len = 1; -- 2.11.0