From e7aab28c3e9f20acb6cc8742f944577b7873a8c0 Mon Sep 17 00:00:00 2001 From: oetiker Date: Tue, 18 Nov 2008 08:37:32 +0000 Subject: [PATCH] added patch suggested by Lars Johannesen git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1675 a5681a0c-68f1-0310-ab6d-d61299d08faa --- contrib/php4/rrdtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/php4/rrdtool.c b/contrib/php4/rrdtool.c index d718cc1d..c91bc7fb 100644 --- a/contrib/php4/rrdtool.c +++ b/contrib/php4/rrdtool.c @@ -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++)); -- 2.30.2