]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
initialize DEF step with chart --step when looking for data fix for a regression...
authorTobias Oetiker <tobi@oetiker.ch>
Wed, 23 Oct 2013 16:48:11 +0000 (18:48 +0200)
committerTobias Oetiker <tobi@oetiker.ch>
Wed, 23 Oct 2013 16:48:11 +0000 (18:48 +0200)
src/rrd_graph_helper.c

index 487bd3e7097538d356a7f0260f8382f7184a8f11..6be6f8e7d240c2f4b2819a6656b7b92080c23577 100644 (file)
@@ -865,8 +865,10 @@ int parse_def(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
                                        |PARSE_END
                                        |PARSE_REDUCE
                                        ); 
+  if (gdp->step == 0){
+      gdp->step = im->step; /* initialize with image wide step */
+  }
   if (!gdp) { return 1;}
-
   /* debugging output */
   dprintf("=================================\n");
   dprintf("DEF   : %s\n",pa->arg_orig);