From 63c113623059c3eca470f8da215a9a7b3959ffee 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@1693 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_fetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2