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/trunk/program@1995 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_graph.c

index 2c4f71a3d37ebee765c113e9c02aa9e9d930fda9..6a3962690f1274a92bbac5a305a2e3d86aba4c94 100644 (file)
@@ -1248,7 +1248,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)