From abed222055a9b814871322c0878f76300fcb6223 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.3@1708 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_fetch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/program/src/rrd_fetch.c b/program/src/rrd_fetch.c index b6aab91c..c5cd6a5a 100644 --- a/program/src/rrd_fetch.c +++ b/program/src/rrd_fetch.c @@ -366,6 +366,8 @@ int rrd_fetch_fn( 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 (rrd_seek(rrd_file, (rra_base + (rra_pointer * (*ds_cnt) * sizeof(rrd_value_t))), SEEK_SET) != 0) { -- 2.30.2