This is a discussion on Re: [rrd-users] rounded values? within the RRD Users forums, part of the Networking and Network Related category; KOZMAN Balint wrote: > is there a way in a cdef or vdef section to define rounding for the rates? &...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
KOZMAN Balint wrote:
> is there a way in a cdef or vdef section to define rounding for the rates? > I'd like to see integers on the graph... If you would like to always round up or down, you can use the built-in FLOOR or CEIL functions. If you would like to perform 'normal' rounding, the following snippet may be useful: CDEF:valrounded=val,1,%,0.5,GE,val,CEIL,val,FLOOR, IF Dan _______________________________________________ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users |