Re: help understand this code.
<[email protected]> Thu, 12 Jul 2007 09:19:34 +0200
| Newsgroups | gmane.network.cricket.user |
|---|---|
| Message-ID | <3D28EBDA36A6E6469582A86D3B5B639C01C2311E@tlrbeantmbx02.ERF.THOMSON.COM> |
> -----Original Message----- > From: [email protected] > [mailto:[email protected]] On > Behalf Of Ajay Chenampara > Sent: Wednesday, July 11, 2007 15:48 > To: [email protected] > Cc: [email protected] > Subject: [cricket-users] help understand this code. > > $data = (RRDs::fetch($rrd, 'AVERAGE', '-s', parsedate('last > month')))[3]; > > This is from the cricket-95.pl script. I know that rrd fetch > returns pointers to pointers or something... but im really > interested to know what AVERAGE here means - is it the > average of the RRD database array? > My rrd file is less than a month old and so i wonder if > that's the reason i am getting the 95th %lile reading(around > 3Mbps) way lower than the average interface usage reading > (around 60 Mbps) Without actually read the code, the average seems to be an argument to the "rrdtool fetch" command. Have a look at the rrdfetch man page. Have a try with a week instead of a month to see if that average better resembles reality. // nick ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/