X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_fetch.c;h=3a794e9c9022a9f0a5fc88771963698127879867;hb=2a9fa65d670ac4a88c78e553351e92678d85fd93;hp=2d61660b10f9d190ff848b195164241e3b5560e3;hpb=3882bb0c2d15f97298aaa7602d6353a1888f5547;p=rrdtool.git diff --git a/src/rrd_fetch.c b/src/rrd_fetch.c index 2d61660..3a794e9 100644 --- a/src/rrd_fetch.c +++ b/src/rrd_fetch.c @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.2.16 Copyright by Tobi Oetiker, 1997-2006 + * RRDtool 1.2.19 Copyright by Tobi Oetiker, 1997-2007 ***************************************************************************** * 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 + (rrd.stat_head->pdp_step * rrd.rra_def[i].pdp_cnt) >= *end + if(cal_end >= *end && cal_start <= *start){ if (first_full || (tmp_step_diff < best_full_step_diff)){ first_full=0;