On Tue, May 11, 2004 at 01:01:16PM +0200, Andras Horvai wrote: > I have rrds (see the rrdtool info output bellow) and I would like to > calculate the in and out > traffic in Mbytes and not in Mbits/sec. Is this possible or should i measure > in an other way, then how? > So I want to see the transferred (in/out) traffic in Mbytes on an interface > and I need yearly archive and > I need to calculate statistics quarterly.
If a year is 365 days and each day has 24 hours and each hour has 60 minutes of 60 seconds each, that makes 365*24*60*60=31536000 seconds. If the stats are in megabits per second, and if you have an average of 1.0, then 1.0 megabits are transfered in 1 second, 2.0 in 2, 3.0 in 3 and so on. Keep going until you've reached 31536000. Divide by eight to get Bytes in stead of bits. Calculations are done using CDEF. See the various tutorials. Alex -- I ask you to respect any "Reply-To" and "Mail-Follow-Up" headers. If you reply to me off-list, you'd better tell me you're doing so. If you don't, and if I reply to the list, that's your problem, not mine. -- 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
