[ previous ] [ next ] [ threads ]
 
 From:  Michael Scheer <listen at autechre dot de>
 To:  m0n0wall at lists dot m0n0 dot ch
 Subject:  Re: How much does a packet weigh?
 Date:  Sun, 23 Jan 2005 13:15:16 +0100
John <naverxp at yahoo dot com dot sg> wrote:

>> Its the Info: 56821/52313 (20.48 MB/6.08 MB) of incoming and outgoing
>> packets.
>>
>> 1. Whats meant here? 1 MB = 1000 or 1024 Bytes?
                                     Oops! ^k
> I'm not strong in my TCP/IP and Packet Encapsulation. So i can only
> advice you on the first question.
>
> 1MB = 1024 KBytes
> http://www.levinecentral.com/ool/speed.asp

Thanks, but is that from theory? You know these days there are a lots
of people who use this terminology:

1 kB  = 10^3 Bytes = 1000 Bytes
1 kiB = 2^10 Bytes = 1024 Bytes

And I do not know what m0n0 uses. It converts like this:

| format_bytes($ifinfo['inbytes']) . "/" .format_bytes($ifinfo['outbytes']) . ")");?>

I'm absolutely no php man, Google did not really help me: is
format_bytes() an internal php function and how dows it convert?