[rrd-users] How to calculate desired value?

spock collector at sappers.de
Sat Aug 23 21:57:03 CEST 2014

Hi Simon, thanks for helping me out.
I will include a more detailed example here:

The graph shows 24h; database has step 900
Lets take the grey area: 
we have "1" values from 09:30 to 19:45 = 10.25h.

relevant graph parameters:

	DEF:heat_flag=temp_pool.rrd:heat_flag:AVERAGE \
	DEF:pump_flag=temp_pool.rrd:pump_flag:AVERAGE \
	CDEF:pumptime=pump_flag,1,EQ,INF,UNKN,IF \
	CDEF:heattime=heat_flag,1,EQ,INF,UNKN,IF \
	CDEF:heattime2=heat_flag,900,*,60,/ \
	CDEF:pumptime2=pump_flag,900,*,60,/ \
	VDEF:totalpumptime=pumptime2,AVERAGE \
	AREA:pumptime#10101010 \
	AREA:heattime#FF000015 \
	LINE2:pump_flag#000000 \
	GPRINT:totalpumptime:"Filterzeit\: %2.2lf h   " \
	GPRINT:totalheattime:"Heizzeit\: %2.2lf h \n"'

As you can see, the calculation for totalpumptime is 6.49h, although it
should be 10.25h.
The LINE2: pump_flag shows clearly, that the data is there, all "1" values -
rest of the day "0" values.
Thanks again,

View this message in context: http://rrd-mailinglists.937164.n2.nabble.com/How-to-calculate-desired-value-tp7582375p7582382.html
Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.

More information about the rrd-users mailing list