Re: [rrd-users] rounded values?

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? &...


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-30-2007
Dan Cech
 
Posts: n/a
Default Re: [rrd-users] rounded values?

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:23 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0