From 47fa927b5b6eda596232bda869da018a68cf2198 Mon Sep 17 00:00:00 2001 From: oetiker Date: Sun, 3 Apr 2005 11:44:58 +0000 Subject: [PATCH] paramters in SHIFT are separated by : like everywhere else git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@335 a5681a0c-68f1-0310-ab6d-d61299d08faa --- doc/rrdgraph_graph.src | 8 +------- src/rrd_graph_helper.c | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/doc/rrdgraph_graph.src b/doc/rrdgraph_graph.src index 9dcaf98..4d4a557 100644 --- a/doc/rrdgraph_graph.src +++ b/doc/rrdgraph_graph.src @@ -42,12 +42,6 @@ =item B : I B<#> I [ : I [ : I ] ] -=back - -=item B - -=over 8 - =item B : I , I =back @@ -251,7 +245,7 @@ length of the tick mark as a fraction of the y-axis; the default value is 0.1 (10% of the axis). Note that the color specification is not optional. -=item B : I , I +=item B : I : I Using this command B will graph the following elements with the specified offset. For instance, you can specify an diff --git a/src/rrd_graph_helper.c b/src/rrd_graph_helper.c index e771221..55185c9 100644 --- a/src/rrd_graph_helper.c +++ b/src/rrd_graph_helper.c @@ -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; -- 2.30.2