Code

fixed another seek issue ...
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Thu, 11 Dec 2008 14:31:16 +0000 (14:31 +0000)
committeroetiker <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.2@1708 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_fetch.c

index 9d4765c1f0ad82a5f0e42a18218dfbe8396c2c91..1a42270074301676edae2b145fe4bd31b6b105ef 100644 (file)
@@ -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