From: oetiker Date: Fri, 14 Jul 2006 09:47:34 +0000 (+0000) Subject: do not reset im->gdes[i].step blindly. We initialize it to im->step at allocation... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2c59301fe197ba171d85448cc57a93999d2bcc79;p=rrdtool-all.git 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@854 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_graph.c b/program/src/rrd_graph.c index 2b8e9fd0..ef88a197 100644 --- a/program/src/rrd_graph.c +++ b/program/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,