[Gllug] Bytes to Megabytes
Julian Somers
lists at bigpip.com
Fri Aug 26 13:25:15 UTC 2005
Can anyone confirm for me a definition of a Megabyte that is correct for
measuring volumes of traffic?
I am doing a script that reports the number of Meagbytes transferred
during a VPN session. I collect data in bytes.
I have always used ( bytes / 1024 ) / 1024 to calculate file sizes in MB
(1MB = 1,048,576 bytes). But having read the three definitions of a
Megabyte here -- http://en.wikipedia.org/wiki/Megabyte -- I believe I
should be using 1MB = 1,000,000 bytes in this case.
Julian
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list