[rrd-users] Question using VDEF

Alex van den Bogaerdt alex at ergens.op.het.net
Sat Jul 21 01:00:54 CEST 2007


On Fri, Jul 20, 2007 at 11:29:44PM +0200, Peter Mueller wrote:

> This does not work:
> VDEF:value=mydist,LAST
> VDEF:distpercent=221,value,-,100,*,121,/
> GPRINT:distpercent:"%2.2lf"
> 
> The problem is in the second line when I calculate distpercent.
> How can I do this? Any other way?

Try cdef distpercent, and then taking the last value using vdef.

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



More information about the rrd-users mailing list