[rrd-users] Re: spaces between GPRINTs and COMMENTS

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Mon Oct 22 11:24:54 MEST 2001


nuno pires wrote:
> 
> Hello.
> I am having a problem with some white spaces between
> my comments and GPRINTS.
> 
> I am using this:
> 
>  COMMENT:last \
>  GPRINT:FIELD2:LAST:%12.1lf \
> 
> As you can see in the picture attached i have many
> white spaces between the comments and the GPRINT's.
> I would like to supress the white spaces, i would
> appreciate any help.

See the manual page for "rrdtool graph", for instance on the web:
http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/manual/rrdgraph.html
Look for "The space following a string can be suppressed".

If that doesn't work, try this:
GPRINT:FIELD2:LAST:last%12.1lf

> P.S. I also would like to understand what means the :
> %12.1lf  in the GPRINT's.

See the manual for printf.  Search for "sprintf" in google,
feel lucky.

cheers,
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. | 
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list