[mrtg] Re: Code

Alex van den Bogaerdt alex at ergens.op.het.net
Mon Aug 11 13:30:48 MEST 2003


On Fri, Aug 08, 2003 at 08:53:21PM +0100, Gavin Hamill wrote:

> > I have using MRTG for awhile now, I have been modifying PHP-analyzer
> > script but I ran into a problem. I have no Idea how to modify "router
> > octets" to kilobytes or megabytes. I know this is a bit out the
> > purpose of this mailing list, but will use in conjunction with MRTG
> 
> Um, a 'router octet' is one byte... (octet since it consists of eight 
> bits) so divide by 1024 to get kilobytes, and divide again by 1024 to 
> get megabytes. :)

A floppy disk, aka 1.44 MB disk, is NOT 1.44 * 1024 * 1024 bytes.

2 sides per disk, 80 tracks per side, 18 sectors per track, 512 bytes per sector
= 2 * 80 * 18 * 512 bytes
= 1474560 bytes
= 1000 * 1024 * 1.44

In other words, mega could also mean 1024*1000 if you are prepared to
skip the real definition of 1,000,000 at all.

Routers/lines and such usually work with mega == 1,000,000

Please see http://physics.nist.gov/cuu/Units/binary.html

Alex

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list