[rrd-users] Re: GPRINT formatting

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Wed Feb 13 02:16:15 MET 2002


crtrepan at ca.ibm.com wrote:
> 
> 
> Is there a way to align the output of GPRINT so that it looks like a table?

> This makes for uneven lines that are hard to read.  I figured out that I
> can use "%3.2lf%S"

That isn't quite right.  This means a total of three positions, two of
them after the decimal point.  Including the decimal point this means
there are no positions left for the numbers in front of the decimal point.

If you want a total of 10 positions, left filled with spaces, two positions
after the decimal point, just do "%10.2lf%S".

You can also do something like "%6.2lf %Sbps" to get "123.56 kbps"
and such.

HTH
-- 
   __________________________________________________________________
 / 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