On Sun, Sep 24, 2006 at 06:14:18PM +0200, Rene Fritzsche wrote:

> PS: I think a SUM-ConsolidationFunction could be useful
> for problems like this..

Or do you perhaps mean: the total so far?

If so:

CDEF:watts=<whatever you need to get it right>
CDEF:total=PREV,UN,0,PREV,IF,watts,+

make sure that watts doesn't contain unknowns (change them into zero)


Reasoning:

First interval of "watts" is first amount of joules during 60 seconds
previous total is unknown, resulting "total" is set to zero plus watts

Second interval of "watts" is the next amount of joules during 60 seconds
Second interval of "total" is previous amount of total plus the current
amount of watts.

3rd interval: similar to 2nd.  And so on.

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

--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

Reply via email to