From 32168315cede582bcaaeaba0fd49c8af229b9269 Mon Sep 17 00:00:00 2001 From: oetiker Date: Fri, 14 Jul 2006 09:47:34 +0000 Subject: [PATCH] do not reset im->gdes[i].step blindly. We initialize it to im->step at allocation time already ... the fix in r291 was over the top. -- niels weaklogic.com git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@854 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_graph.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 2b8e9fd..ef88a19 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -714,7 +714,7 @@ data_fetch(image_desc_t *im ) break; } if (! skip) { - unsigned long ft_step = im->gdes[i].step ; + unsigned long ft_step = im->gdes[i].step ; /* ft_step will record what we got from fetch */ if((rrd_fetch_fn(im->gdes[i].rrd, im->gdes[i].cf, @@ -727,7 +727,6 @@ data_fetch(image_desc_t *im ) return -1; } im->gdes[i].data_first = 1; - im->gdes[i].step = im->step; if (ft_step < im->gdes[i].step) { reduce_data(im->gdes[i].cf_reduce, -- 2.11.0