Code

added patch suggested by Lars Johannesen
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 18 Nov 2008 08:37:32 +0000 (08:37 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 18 Nov 2008 08:37:32 +0000 (08:37 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1675 a5681a0c-68f1-0310-ab6d-d61299d08faa

contrib/php4/rrdtool.c

index d718cc1d7f51810a88a1be1714f374ef5ec6daf0..c91bc7fbeb8b56b61774af43fa6928271c7b89cc 100644 (file)
@@ -299,7 +299,7 @@ PHP_FUNCTION(rrd_fetch)
                        {
                                datap = data;
  
-                               for (i = start; i <= end; i += step)
+                               for (i = start + step; i <= end; i += step)
                                        for (j = 0; j < ds_cnt; j++)
                                                add_next_index_double(p_data, *(datap++));