summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5b2064d)
raw | patch | inline | side by side (parent: 5b2064d)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 3 Apr 2005 11:44:58 +0000 (11:44 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 3 Apr 2005 11:44:58 +0000 (11:44 +0000) |
doc/rrdgraph_graph.src | patch | blob | history | |
src/rrd_graph_helper.c | patch | blob | history |
diff --git a/doc/rrdgraph_graph.src b/doc/rrdgraph_graph.src
index 9dcaf98f30082300340384cbd176ce507002b605..4d4a5574ac4a9183236d18ddae0a7aba158408d5 100644 (file)
--- a/doc/rrdgraph_graph.src
+++ b/doc/rrdgraph_graph.src
=item B<TICK> : I<vname> B<#> I<rrggbbaa> [ : I<fraction> [ : I<legend> ] ]
-=back
-
-=item B<to be implemented commands>
-
-=over 8
-
=item B<SHIFT> : I<vname> , I<offset>
=back
is 0.1 (10% of the axis). Note that the color specification is not
optional.
-=item B<SHIFT> : I<vname> , I<offset>
+=item B<SHIFT> : I<vname> : I<offset>
Using this command B<RRDtool> 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 e7712216e5d15c78f30e7a81fc06a5f373413339..55185c93594d8c0662c57daa7202caa9ccfb8deb 100644 (file)
--- 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;