summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bc05a3b)
raw | patch | inline | side by side (parent: bc05a3b)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 11 Dec 2008 14:31:16 +0000 (14:31 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 11 Dec 2008 14:31:16 +0000 (14:31 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3/program@1708 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_fetch.c | patch | blob | history |
diff --git a/src/rrd_fetch.c b/src/rrd_fetch.c
index b6aab91c4e7705f9d55109507c4cea992885e134..c5cd6a5a8ce5a79b655858ecaa9a7dd0070055e9 100644 (file)
--- a/src/rrd_fetch.c
+++ b/src/rrd_fetch.c
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) {