X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_graph_helper.c;h=a12591b6acb926d416e08347bf9db17b9b6f4c8f;hb=37329a5f991870e8f47c8a52f6dd594fef813de6;hp=23a44d45ce28d53b9a751d22950c04f01d230e3e;hpb=3ce3c2ade005ebd835b83059dacb0ab4f1019e73;p=rrdtool.git diff --git a/src/rrd_graph_helper.c b/src/rrd_graph_helper.c index 23a44d4..a12591b 100644 --- a/src/rrd_graph_helper.c +++ b/src/rrd_graph_helper.c @@ -1,5 +1,5 @@ /**************************************************************************** - * RRDtool 1.2.2 Copyright by Tobi Oetiker, 1997-2005 + * RRDtool 1.2.6 Copyright by Tobi Oetiker, 1997-2005 **************************************************************************** * rrd_graph_helper.c commandline parser functions * this code initially written by Alex van den Bogaerdt @@ -298,6 +298,11 @@ rrd_parse_PVHLAST(char *line, unsigned int *eaten, graph_desc_t *gdp, image_desc dprintf("- parsing '%s'\n",&line[*eaten]); + /* have simpler code in the drawing section */ + if ( gdp->gf == GF_STACK ){ + gdp->stack=1; + } + i=scan_for_col(&line[*eaten],MAX_VNAME_LEN+9,tmpstr); if (line[*eaten+i]!='\0' && line[*eaten+i]!=':') { rrd_set_error("Cannot parse line '%s'",line); @@ -397,9 +402,9 @@ rrd_parse_PVHLAST(char *line, unsigned int *eaten, graph_desc_t *gdp, image_desc /* If the legend is not empty, it has to be prefixed with "m ". This then gets * replaced by the color box later on. */ (*eaten)--; - linecp[*eaten]=' '; + linecp[*eaten]='o'; (*eaten)--; - linecp[*eaten]='m'; + linecp[*eaten]='o'; } if (rrd_parse_legend(linecp, eaten, gdp)) err=1; @@ -455,10 +460,6 @@ rrd_parse_PVHLAST(char *line, unsigned int *eaten, graph_desc_t *gdp, image_desc (*eaten)++; dprintf("- parsing '%s'\n",&line[*eaten]); - /* have simpler code in the drawing section */ - if ( gdp->gf == GF_STACK ){ - gdp->stack=1; - } return 0; }