Michaux Julien wrote:
> As I use the AVERAGE CF to graph some data (
> DEF:load=${RRDARCHIVE}:load:AVERAGE ), it's the same problem as yesterday :
> The LINE (LINE1:load#FF0000:"") is draw with no rounding numbers. So when the
> value is approximately 1 (0.842 for example) the line is not on the
> graduation 1.
>
> Is there a way to make the graph working with rounding numbers ?
AFAIK there is no RPN function to perform rounding, but you should be
able to achieve this using the FLOOR and CEIL functions.
CDEF:valrounded=val,1,%,0.5,GE,val,CEIL,val,FLOOR,IF
I haven't tried this myself, but it seems like it might work.
Dan
_______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users