Code

do not reset im->gdes[i].step blindly. We initialize it to im->step at allocation...
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Fri, 14 Jul 2006 09:47:34 +0000 (09:47 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Fri, 14 Jul 2006 09:47:34 +0000 (09:47 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@854 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_graph.c

index 2b8e9fd03062676a9afc2c0d04384d79eeaf6833..ef88a197787f8d851134e8452ec5d526bb414fd6 100644 (file)
@@ -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,