[rrd-users] Exact Number

Alex van den Bogaerdt alex at ergens.op.het.net
Thu May 31 02:42:03 CEST 2007


On Wed, May 30, 2007 at 05:28:13PM +0200, Michaux Julien wrote:

> GPRINT:NbSessionInactive:MAX:"%8.0lf %s   " \
> GPRINT:NbSessionInactive:MIN:"%8.0lf %s   " \
> GPRINT:NbSessionInactive:AVERAGE:"%8.0lf %s   " \
> GPRINT:NbSessionInactive:LAST:"%8.0lf %s   \n" \
> 
> For the MAX,MIN and LAST, there is no problem ( An exact number > 1 ) but for the AVERAGE it shows something like "682 m" (so 0,682). I don't want this. I would like to have 0 instead.

You are using "%s" and thus you are asking RRDtool to convert
"0,682" into "682 m" and similar.
> 
> How can I make this ?

Don't ask RRDtool to do this, and it won't.

HTH
-- 
Alex van den Bogaerdt
http://www.vandenbogaerdt.nl/rrdtool/



More information about the rrd-users mailing list