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=63c113623059c3eca470f8da215a9a7b3959ffee;p=rrdtool-all.git add de-referencing to step in fetch check git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1693 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_fetch.c b/program/src/rrd_fetch.c index 33465b31..152018fa 100644 --- a/program/src/rrd_fetch.c +++ b/program/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