[rrd-users] Oddities with rrdtool

Jean-Yves Avenard jyavenard at gmail.com
Fri Jan 1 10:26:11 CET 2010


Hi there

2009/12/28 Jean-Yves Avenard <jyavenard at gmail.com>:
> Does so on two different machines ; a Linux (Ubuntu) with rrdtool
> 1.4.2 and another FreeBSD with rrdtool 1.3.9 ....
>
> Always on the same graph ; one that I plot from midnight to midnight
> so the end time is in the future...
>
> Any ideas ?
> I've just tried again ; and all graph display properly now !!
>
> That's the page it's from:
> http://htpc.avenard.org/power/

Ok... I had a shot at it ; and I have fixed the memory access error
that was showing up in valgrind..

Not sure if this will fix the issue of graph not showing up (though I
have great suspicion it will).

the patch:
$ diff -Naur src/rrd_graph.c.orig src/rrd_graph.c ---
src/rrd_graph.c.orig	2010-01-01 20:23:04.000000000 +1100
+++ src/rrd_graph.c	2010-01-01 20:23:19.000000000 +1100
@@ -1248,7 +1248,7 @@
                     } else
                         if (((long int) gr_time >=
                              (long int) im->gdes[vidx].start)
-                            && ((long int) gr_time <=
+                            && ((long int) gr_time <
                                 (long int) im->gdes[vidx].end)) {
                         value = im->gdes[vidx].data[(unsigned long)
                                                     floor((double)



More information about the rrd-users mailing list