From 7ba7b9c44de40762259e5e8628ce05e2ef1e2005 Mon Sep 17 00:00:00 2001 From: oetiker Date: Sat, 2 Jan 2010 16:33:26 +0000 Subject: [PATCH] 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/program@1995 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rrd_graph.c b/src/rrd_graph.c index ee44c77..45218bc 100644 --- a/src/rrd_graph.c +++ b/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) -- 2.30.2