X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_fetch.c;h=2d61660b10f9d190ff848b195164241e3b5560e3;hb=3882bb0c2d15f97298aaa7602d6353a1888f5547;hp=1ac392f514c29fef8f042e8af19402672b2dac28;hpb=e97c3999fd36fe66b7a1ff4a70fe1726f77b615c;p=rrdtool.git diff --git a/src/rrd_fetch.c b/src/rrd_fetch.c index 1ac392f..2d61660 100644 --- a/src/rrd_fetch.c +++ b/src/rrd_fetch.c @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.2.12 Copyright by Tobi Oetiker, 1997-2005 + * RRDtool 1.2.16 Copyright by Tobi Oetiker, 1997-2006 ***************************************************************************** * rrd_fetch.c read date from an rrd to use for further processing ***************************************************************************** @@ -237,7 +237,7 @@ fprintf(stderr,"Considering: start %10lu end %10lu step %5lu ", tmp_step_diff = labs(*step - (rrd.stat_head->pdp_step * rrd.rra_def[i].pdp_cnt)); /* best full match */ - if(cal_end >= *end + if(cal_end + (rrd.stat_head->pdp_step * rrd.rra_def[i].pdp_cnt) >= *end && cal_start <= *start){ if (first_full || (tmp_step_diff < best_full_step_diff)){ first_full=0;