From: Tobias Oetiker Date: Sun, 3 Apr 2005 09:37:08 +0000 (+0000) Subject: the legend string of a PRINT command gets renderd later by runnning X-Git-Tag: 1.2rc1~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d54723bf58646b5aa84d19a04dfd758f6a3122e;p=thirdparty%2Frrdtool-1.x.git the legend string of a PRINT command gets renderd later by runnning it through printf. git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@330 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_graph_helper.c b/src/rrd_graph_helper.c index 4847812c..44b11590 100644 --- 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; - - /* 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); - + gdp->legend[0]='\0'; return 0; }