From: oetiker Date: Sat, 2 Jan 2010 16:33:26 +0000 (+0000) Subject: the end time itself is not part of a time range ... this fixes the segfault reported... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2e2fe2e4e45972bf2fdd72875db728ae2ce7ef73;p=rrdtool-all.git the end time itself is not part of a time range ... this fixes the segfault reported in #248 git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@1995 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_graph.c b/program/src/rrd_graph.c index ee44c77e..45218bc0 100644 --- a/program/src/rrd_graph.c +++ b/program/src/rrd_graph.c @@ -1086,7 +1086,7 @@ data_proc( image_desc_t *im ){ if (im->gdes[vidx].gf == GF_VDEF) { value = im->gdes[vidx].vf.val; } else if (((long int)gr_time >= (long int)im->gdes[vidx].start) && - ((long int)gr_time <= (long int)im->gdes[vidx].end) ) { + ((long int)gr_time < (long int)im->gdes[vidx].end) ) { value = im->gdes[vidx].data[ (unsigned long) floor( (double)(gr_time - im->gdes[vidx].start)