Kuba,
1000m = 1 because m means milli.
The graph is correct. 

                        ...Laurie :{)

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, 2 January 2003 10:26
To: [email protected]
Subject: [rrd-users] graphing problem.




  I used to fill my rrd with small values, range from 0.00 to 2.00 
(yes, system load ;)). But, when values are small, like 0.1 - 1.00, rdd 
graphs it completely wrong, there are values from 0 to 1000m (?) on Y axis.
Why?

<source>
$_=`uptime`; chomp;
s/[a-zA-Z:\ ]+//g;
@uptime=split(/,/);

RRDs::update($db_dir.$db_file,"N:$uptime[3]:$uptime[4]:$uptime[5]");

RRDs::graph($png_dir.$png_file,
            "-v System load","-w600","-h150","-y 0.2:5","-b1000",
            "-aPNG","-t HADES - system load",
            "HRULE:1.5#FF0000:System overload.\\n",
            "COMMENT:\\n",
            "DEF:sload1=".$db_dir.$db_file.":sysload1:AVERAGE",
            "LINE1:sload1#c60f1f: 1 min.\\n",
            "DEF:sload2=".$db_dir.$db_file.":sysload5:AVERAGE",
            "LINE1:sload2#373df2: 5 min.\\n",
            "DEF:sload3=".$db_dir.$db_file.":sysload15:AVERAGE",
            "LINE1:sload3#000000: 15 min.\\n",
            "COMMENT:\\n");

</source>


  Kuba


---
Experience is that marvellous thing that enables you recognize a mistake
when you make it again.

--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi


**********************************************************************"
This correspondence is for the named person's use only. It may
contain confidential or legally privileged information or both. "
No confidentiality or privilege is waived or lost by any "
mistransmission.  If you receive this correspondence in error, please
immediately delete it from your system and notify the sender.  You 
must not disclose, copy or rely on any part of this correspondence 
if you are not the intended recipient. 

Any views expressed in this message are those of the individual sender,
except where the sender expressly, and with authority, states them to
be the views of Vodafone.

This email has been checked for viruses.
**********************************************************************

--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to