[rrd-users] Re: GPRINT string formating

Alex van den Bogaerdt alex at ergens.op.HET.NET
Tue Jun 18 12:24:32 MEST 2002

=?iso-8859-1?Q?I=F1aki_Mart=EDnez?= wrote:

>  %9.0lf
> This print the following:
> MAX:  12345678  Current:  12345678
> but i want to see the following:
> MAX:  12.345.678  Current:  12.345.678
>  is this posible???? how????

I don't think it is possible.  RRDtool uses your OS's
printf implementation *and* it does some syntax checking.
So, even *if* your OS's printf could display it as such
then still RRDtool will complain (I think).

However, if you write a (part of a) front end that generates
a string in the format you want then of course you can display

You'd have to use a three-step process:
1) calculate the numbers using "rrdtool graph /dev/null" and no
   graphing options (ie use "PRINT", not "GPRINT")
2) format the numbers generated by (1) to your liking
3) generate a graph and use the strings generated by (2) inside
   the label (ie "LINE1:target#color:$label"

 / 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