From ecb15032cda25c5be02d7c047f99e8974bc980ec Mon Sep 17 00:00:00 2001 From: oetiker Date: Thu, 4 Dec 2008 15:49:11 +0000 Subject: [PATCH] add de-referencing to step in fetch check git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1693 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_fetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2