X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Frrd_graph_helper.c;h=4ccd9a671b69e95abae6a004bb888f6165b2aaec;hb=b02eace34f83a08c55830cb05bc55078153e2ba6;hp=44b115905749e3eefdb974b968034a06f910a3dc;hpb=6533d8056c4251d86582ad7fc4c675067042ca35;p=rrdtool.git diff --git a/src/rrd_graph_helper.c b/src/rrd_graph_helper.c index 44b1159..4ccd9a6 100644 --- a/src/rrd_graph_helper.c +++ b/src/rrd_graph_helper.c @@ -1,5 +1,5 @@ /**************************************************************************** - * RRDtool 1.2.x Copyright Tobias Oetiker, 1997 - 2005 + * RRDtool 1.2rc4 Copyright by Tobi Oetiker, 1997-2005 **************************************************************************** * rrd_graph_helper.c commandline parser functions * this code was probably writtenn by Alex van den Bogaerdt @@ -175,7 +175,7 @@ rrd_parse_shift(char *line, unsigned int *eaten, graph_desc_t *gdp, image_desc_t char *l = strdup(line + *eaten), *p; int rc = 1; - p = strchr(l, ','); + p = strchr(l, ':'); if (p == NULL) { rrd_set_error("Invalid SHIFT syntax"); goto out; @@ -347,7 +347,9 @@ rrd_parse_PVHLAST(char *line, unsigned int *eaten, graph_desc_t *gdp, image_desc /* PART, HRULE, VRULE and TICK cannot be stacked. We're finished */ if ( (gdp->gf == GF_HRULE) || (gdp->gf == GF_VRULE) +#ifdef WITH_PIECHART || (gdp->gf == GF_PART) +#endif || (gdp->gf == GF_TICK) ) return 0; @@ -587,7 +589,9 @@ rrd_graph_script(int argc, char *argv[], image_desc_t *im, int optno) { case GF_COMMENT: /* text */ if (rrd_parse_legend(argv[i],&eaten,gdp)) return; break; +#ifdef WITH_PIECHART case GF_PART: /* value[#color[:legend]] */ +#endif case GF_VRULE: /* value#color[:legend] */ case GF_HRULE: /* value#color[:legend] */ case GF_LINE: /* vname-or-value[#color[:legend]][:STACK] */