From: oetiker Date: Thu, 4 Dec 2008 15:49:11 +0000 (+0000) Subject: add de-referencing to step in fetch check X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ecb15032cda25c5be02d7c047f99e8974bc980ec;p=rrdtool.git add de-referencing to step in fetch check git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1693 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_fetch.c b/src/rrd_fetch.c index 33465b3..152018f 100644 --- a/src/rrd_fetch.c +++ b/src/rrd_fetch.c @@ -384,7 +384,7 @@ int rrd_fetch_fn( rra_start_time, rra_end_time, start_offset, end_offset); #endif /* only seek if the start time is before the end time */ - if (*start <= rra_end_time && *end >= rra_start_time - step ){ + if (*start <= rra_end_time && *end >= rra_start_time - *step ){ if (start_offset <= 0) rra_pointer = rrd.rra_ptr[chosen_rra].cur_row + 1; else