From: Tobias Oetiker Date: Wed, 23 Oct 2013 16:48:11 +0000 (+0200) Subject: initialize DEF step with chart --step when looking for data fix for a regression... X-Git-Tag: v1.5.0-rc1~161 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a1990fcd4886dee85013cd9a2d21487134f96fcb;p=thirdparty%2Frrdtool-1.x.git initialize DEF step with chart --step when looking for data fix for a regression with the new argument parser --- diff --git a/src/rrd_graph_helper.c b/src/rrd_graph_helper.c index 487bd3e7..6be6f8e7 100644 --- a/src/rrd_graph_helper.c +++ b/src/rrd_graph_helper.c @@ -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);