[rrd-users] Re: GPRINT formatting

Patrick Rother krd-rrd-users at gulu.net
Tue Feb 12 20:10:59 MET 2002

On Tue, Feb 12, 2002 at 01:58:36PM -0500, crtrepan at ca.ibm.com wrote:
> Is there a way to align the output of GPRINT so that it looks like a
> table?
> I put the max, min, and current values at the bottom of the graphs for
> Gigabit interfaces, 4 per line.  My problem is that some values will be
> 4.56K and others 554.42K.
> This makes for uneven lines that are hard to read.  I figured out that I
> can use "%3.2lf%S" to format the value but what I'd really like to use is
> "% 3.2lf%S" (this one has a space between % and 3 which would provide 3
> digits left filled with spaces but that gets rejected by RRDTOOL.

Try "%5.2lf" if you want 5 digits overall and two of them right of the
decimal point.

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