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 >481x155 > 216.71m > >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. _______________________________________________ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users