Code

the end time itself is not part of a time range ... this fixes the segfault reported...
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sat, 2 Jan 2010 16:33:26 +0000 (16:33 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sat, 2 Jan 2010 16:33:26 +0000 (16:33 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3@1995 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_graph.c

index b5f8e213a7265f7a5975afee028e3ddd2c3e4339..a65bca64378904a84e7c24ebf7c77b9d6ae4250a 100644 (file)
@@ -1211,7 +1211,7 @@ int data_proc(
                     } 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)