From: oetiker Date: Thu, 11 Dec 2008 14:31:16 +0000 (+0000) Subject: fixed another seek issue ... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=03f94b7314738784749867c54263a3b376dc2b1a;p=rrdtool.git fixed another seek issue ... git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1708 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_fetch.c b/src/rrd_fetch.c index 152018f..8a0a3ec 100644 --- a/src/rrd_fetch.c +++ b/src/rrd_fetch.c @@ -390,6 +390,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) {