spock <[email protected]> wrote: > I tried: > CDEF:heattime2=heat_flag,900,*,60,/ \ > VDEF:totalheattime=heattime2,AVERAGE' > GPRINT:totalheattime:"Total\: %2.2lf h \n"' > but I get wrong results. I probably have to do the calculation completly > different. > > Can anyone help me out here? > > I should get perfectly aligned values as a result: 0.25 h; 0.50h; etc. > How can I achieve this?
Give us a clue to go on, what values do you get ? Is it that you expected (say) 15 but got 14.99, or you got something completely different ? Your approach is right, I suspect rounding errors come into it. _______________________________________________ rrd-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
