[rrd-users] Re: PREV fails?

Tobias Oetiker oetiker at ee.ethz.ch
Sat Jan 1 18:22:08 MET 2000


Tuesday you sent me mail regarding [rrd-users] PREV fails?:

*> Hi,
*> 
*> I was playing around a bit with scripts et al and it seems that I'm
*> doing something wrong while using PREV inside my CDEF script.
*> 
*> "active" is a datasource that counts seconds.  The number will vary
*> from 0 to about 21600.
*> 
*> I'm trying:
*>     CDEF:p=active,PREV,-
*>     AREA:p#0000FF:previous
*> (using either 1.0.8 or 1.0.9)
*> 
*> >From the manual I understand that this should:
*> 
*> 1) push the value of "active".
*> 2) push the previous value of ACTIVE or, if this is unknown, UNKN.
*> 3) subtract the second from the first, leaving one value on the stack.
*> 
*> Unfortunately the only value I get is UNKN and yes, I'm sure "active"
*> is not unknown for most of the time.

*> Where do I go wrong?

sonds fine to me ... I must say I have not tested the pREV funciton this was
contributed ... how about a 'demo script :-)' ... cheers
tobi
*> 
*> TIA
*> 

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker, Timelord & SysMgr @ EE-Dept ETH-Zurich
 / // _ \/ _ \/ / TEL: +41(0)1-6325286  FAX:...1517  ICQ: 10419518 
/_/ \.__/_.__/_/ oetiker at ee.ethz.ch http://ee-staff.ethz.ch/~oetiker

--
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



More information about the rrd-users mailing list