[rrd-users] Re: Problem with CDEF and PREV-Function

Alex van den Bogaerdt alex at ergens.op.het.net
Mon Aug 4 14:35:54 MEST 2003


On Mon, Aug 04, 2003 at 12:59:17PM +0200, Christoph Galuschka wrote:

> I'm trying to use the PREV-Function. Although I tried a lot, I 
> failed so far. Here is my problem:
> 
> When using the following CDEF:
> CDEF:line_new=PREV(idefix2_content)
> (idefix2_content is already defined)
> I get the error:
> syntax error near unexpected token `CDEF:line_new=PREV(i'

Cannot comment on this, just don't know prev().  The error
seems to indicate the problem is with something else, you
may want to post the entire grapher script...

> When using this CDEF:
> CDEF:line_new=idefix2_content,PREV
> I get the error:
> ERROR: RPN final stack size != 1

This is correct.  You are putting >two< numbers on the stack.
After the stack is processed, only one value should remain!

1: push the current content of idefix2_content
2: push the previous value from line_new
result: two values.  And probably not those that you want.

HTH
Alex
-- 
Received on my linux server: "Increase the speed of your PC in minutes! Stop
windows from crashing, improve internet security and optimize your computers
performance with just a few easy mouse clicks!"

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