From: Tobias 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: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e99d89c6b5cb48ef65b31ea050ef5810a21d08d4;p=thirdparty%2Frrdtool-1.x.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.3/program@1995 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index b5f8e213..a65bca64 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -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)