[rrd-users] Re: GPRINT doing something weird

Oddie oddie at vtr.net
Thu Dec 20 19:30:40 MET 2001


I found that if i remove the %s from the Gprint, it shows me the data in
Gb, i mean, 

With %s

300.23 m

Without %s

0.3



-----Mensaje original-----
De: rrd-users-bounce at list.ee.ethz.ch
[mailto:rrd-users-bounce at list.ee.ethz.ch] En nombre de James Mancini
Enviado el: Miércoles, 19 de Diciembre de 2001 17:11
Para: oddie at vtr.net
CC: rrd-users at list.ee.ethz.ch
Asunto: [rrd-users] Re: GPRINT doing something weird


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.

HTH!

____________________________________________________
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
____________________________________________________
                http://www.Netreo.net
____________________________________________________
"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


--
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