summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8d64386)
raw | patch | inline | side by side (parent: 8d64386)
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) |
program/src/rrd_fetch.c | patch | blob | history |
index 152018fa3d10a0f2fea244b5b57d9996b772e7d8..8a0a3ec1cb8e711f356c519ed582247d3369355f 100644 (file)
--- a/program/src/rrd_fetch.c
+++ b/program/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) {