[rrd-users] Re: GPRINT doing something weird

James Mancini jmancini at netreo.net
Wed Dec 19 21:11:06 MET 2001

This is the ancient scaling riddle again.

300 milli-Gigabytes is non-intuitive, but it IS correct, 300 Megabytes or .3
Gig. RRD tends to try to keep the values out of the decimal realm and so
will autoscale .3 Gig to 300 milli-Gigs.

If you let RRD do _ALL_ the scaling, it works fine. That is, if you send
'3,000,000,000' to RRD, it will scale it to 3G, and then when you send
'300,000,000' it will scale it to 300M.

But if you send '3' and '.3' instead, and change your unit title to "G",
you'll get wacky values like '300mG' and similar.

We had this problem with Ping results - if you send them in ms, then
microseconds come out as 'mms' instead of 'us'. You have to send them in
seconds and let RRD do the scaling for it to read correctly.


James Mancini                                 Netreo
CCIE #2006, CCSI #23051        <jmancini at netreo.net>
V: 949.221.0790x24                 Fax: 949.221.0793
PGP Encrypted Email Preferred. Key Fingerprint:
83D9 6221 FF50 038D 096A  9346 AB56 83A3 0B7C 638A
"They that can give up essential liberty to obtain a
 little temporary safety deserve neither liberty nor
safety." - Benjamin Franklin, 1759.

Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the rrd-users mailing list