/****************************************************************************
- * RRDtool 1.2.3 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
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);
/* 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;
(*eaten)++;
dprintf("- parsing '%s'\n",&line[*eaten]);
- /* have simpler code in the drawing section */
- if ( gdp->gf == GF_STACK ){
- gdp->stack=1;
- }
return 0;
}