[rrd-users] rounded values?
Dan Cech
dcech at phpwerx.net
Mon Jul 30 17:16:29 CEST 2007
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
More information about the rrd-users
mailing list