From 664994a2ef1e10905e55ddcc02a5285749b81b3d Mon Sep 17 00:00:00 2001 From: oetiker Date: Thu, 11 Dec 2008 14:31:16 +0000 Subject: [PATCH] fixed another seek issue ... git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1708 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_fetch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rrd_fetch.c b/src/rrd_fetch.c index 9d4765c..1a42270 100644 --- a/src/rrd_fetch.c +++ b/src/rrd_fetch.c @@ -368,6 +368,8 @@ fprintf(stderr,"partial match, not best\n"); else rra_pointer = rrd.rra_ptr[chosen_rra].cur_row+1+start_offset; + rra_pointer = rra_pointer % (signed) rrd.rra_def[chosen_rra].row_cnt; + if(fseek(in_file,(rra_base + (rra_pointer * *ds_cnt -- 2.30.2