[rrd-users] Re: Text formatting.
Alex van den Bogaerdt
alex at slot.hollandcasino.nl
Wed Oct 6 23:22:32 MEST 1999
> <RRD::GRAPH ...
> AREA:in_bits#00FF00:"input "
> GPRINT:in_bits:MAX:"%3.2lf %sbits/sec max"
> GPRINT:in_bits:AVERAGE:"%3.2lf %sbits/sec ave"
> GPRINT:in_bits:LAST:"%3.2lf %sbits/sec last\n"
> LINE2:out_bits#0000FF:"output"
> GPRINT:out_bits:AVERAGE:"%3.2lf %sbits/sec ave"
> GPRINT:out_bits:MAX:"%3.2lf %sbits/sec max"
> GPRINT:out_bits:LAST:"%3.2lf %sbits/sec last\n">
>
> and found that "%3.2lf" did *not* pad the output with
> leading spaces as expected.
>
If you expect ###.## output: your expectations are wrong.
You ask for a minimum of three positions, two of them after
the decimal point. Try "%6.2lf", for six positions.
> LINE2:out_bits#0000FF:"output"
> PRINT:out_bits:AVERAGE:"%3.2lf %sbits/sec ave"
> PRINT:out_bits:MAX:"%3.2lf %sbits/sec max"
> PRINT:out_bits:LAST:"%3.2lf %sbits/sec last\n">
> <PRE>
> input <RRD::PRINT 0> <RRD::PRINT 1> <RRD::PRINT 2>
> output <RRD::PRINT 3> <RRD::PRINT 4> <RRD::PRINT 5>
> </PRE>
>
> but I found that any <RRD::PRINT N> tag with values of N != 0 causes
> the whole rrdcgi script to not work! (Although <RRD::PRINT 0> does
> print leading spaces when necessary!)
>
This is strange. IMO it should work. Will try later on this week.
Regards,
Alex
--
* To unsubscribe from the rrd-users mailing list, send a message with the
subject: unsubscribe to rrd-users-request at list.ee.ethz.ch
More information about the rrd-users
mailing list