[rrd-users] Re: [rrd-developers] FW: how to display CF value in 2 decimal point using GPRINT optio

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Mon Apr 22 10:13:56 MEST 2002

Lu, Yan P wrote:

> I have set the option format shown below:
> GPRINT:a:AVERAGE:average %lf%s $ylabel
> The output of this format is, for example:
> average 5.463248M bytes/min
> Could anyone tell me there is any way that can reduce this 6 decimal points
> into 2 decimal points?

Look up the manual page for printf (to be found on your computer
or on the internet).

In short: %6.2lf will print as ###.##

 / 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