[rrd-users] graph string formatting

Ricardo Kleemann ricardo at americasnet.com
Sat Sep 11 18:32:57 CEST 2010


I'll answer my own question... ;-)

for NNN.NN I need to make it %6.2lf and not %5.2lf. That seems to
have fixed it

At Saturday, 09-11-2010 on 9:18 "Ricardo Kleemann"  wrote:

Hi,

I am using the typical printf formatting for printing out values,
like %5.2lf

GPRINT:input:LAST:"Current\\: %5.2lf %s "

And this is using the standard fixed width font.

However it is not properly spacing the text so everything lines up.
When I have a value NNN.NN and NN.NN they are not lining up. Shouldn't
the %5.2lf ensure that the numbers are properly spaced and
right-justified?

thanks
Ricardo


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20100911/9ff34b57/attachment.htm 


More information about the rrd-users mailing list