[rrd-users] Calculation that is a bit over my head.
linux at thehobsons.co.uk
Mon Nov 25 00:34:30 CET 2013
Jan Johansson wrote:
>rrdtool graph /usr/share/nginx/www/test.png -s "now-1 day" -e "now" DEF:ds0=/opt/Krokopool/RRDDatabases/Styrning_Varmare.rrd:Styrning_Varmare:AVERAGE VDEF:ds1=ds0,AVERAGE LINE:ds0\#FF0000:ds0 PRINT:ds1:%20.2lf%s
>Does this mean 21,67% "on" for the given time span?
>The reason for asking is that it does not seem reasonable. But I wanted to double check that my code seem correct before I start investigating other possible reasons for incorrect data.
Yes, it would be 21.67%
Multiply by the length of time (86400 seconds in this case) to get total running time (5.2 hours in the day), and multiply that by the nominal running power to get energy consumed.
More information about the rrd-users