projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
the legend string of a PRINT command gets renderd later by runnning
[rrdtool.git]
/
src
/
rrd_graph_helper.c
diff --git
a/src/rrd_graph_helper.c
b/src/rrd_graph_helper.c
index
4847812
..
44b1159
100644
(file)
--- a/
src/rrd_graph_helper.c
+++ b/
src/rrd_graph_helper.c
@@
-163,10
+163,10
@@
rrd_parse_print(char *line, unsigned int *eaten, graph_desc_t *gdp, image_desc_t
}
if (rrd_parse_legend(line,eaten,gdp)) return 1;
}
if (rrd_parse_legend(line,eaten,gdp)) return 1;
-
-
/* Why is there a separate structure member "format" ???
*/
+ /* for *PRINT the legend itself gets renderd later. We only
+
get the format at this juncture
*/
strcpy(gdp->format,gdp->legend);
strcpy(gdp->format,gdp->legend);
-
+ gdp->legend[0]='\0';
return 0;
}
return 0;
}