I noticed that MyBB uses the incorrect names for storage units when calling functions.php/get_friendly_size.
For example a size of 1024 Bytes is returned as 1 KB.
But 1 KB is 1000 (10^3) Bytes.
The same goes for all the other units.
The correct term is KiB (2^10 = 1024 Bytes).
Please check the
Wikipedia article: Kibibyte for reference.
Assumed fix for global.lang.php:
PHP Code:
$l['size_gb'] = "GiB";
$l['size_mb'] = "MiB";
$l['size_kb'] = "KiB";
Nothing serious to be true

ah.. never seen anyone using biki and mebi.. everyone knows that 1024 is 1 kb... there is no need to make thing complex..
Quote:1 bit
8 bits = 1 Byte (on most systems)
1024 bytes = 1 KiloByte (KBytes or KB or KiB)
1024*1024 bytes = 1024 KB = 1 MegaByte (MBytes or MB or MiB)
1024*1024*1024 bytes = 1024*1024 KB = 1024 MB = 1 GigaByte (GBytes or GB or GiB)
1024*1024*1024*1024 bytes = 1024*1024*1024 KB = 1024*1024 MB = 1024 GB = 1 TeraByte (TBytes or TB or TiB)
1024*1024*1024*1024*1024 bytes = 1024*1024*1024*1024 KB = 1024*1024*1024 MB = 1024*1024 GB = 1024 TB = 1 PetaByte (PBytes or PB or PiB)
1024*1024*1024*1024*1024*1024 bytes = 1024*1024*1024*1024*1024 KB = 1024*1024*1024*1024 MB = 1024*1024*1024 GB = 1024*1024 TB = 1024 PB = 1 ExaByte (EBytes or EB or EiB)
1024*1024*1024*1024*1024*1024*1024 bytes = 1024*1024*1024*1024*1024*1024 KB = 1024*1024*1024*1024*1024 MB = 1024*1024*1024*1024 GB = 1024*1024*1024 TB = 1024*1024 PB = 1024 EB = 1 ZettaaByte (ZBytes or ZB or ZiB)
1024*1024*1024*1024*1024*1024*1024*1024 bytes = 1024*1024*1024*1024*1024*1024*1024 KB = 1024*1024*1024*1024*1024*1024 MB = 1024*1024*1024*1024*1024 GB = 1024*1024*1024*1024 TB = 1024*1024*1024 PB = 1024*1024 EB = 1024 ZB = 1 YottaByte (YBytes or YB or YiB)
More info
here
zaher1988 Wrote:everyone knows that 1024 is 1 kb
In fact everyone
thinks 1024 Bytes is 1 KB, but it isnt
Wikipedia Wrote:Because of a traditional inconsistency, "kilobytes" are often intended to mean kibibytes in common speech. This usage is not recommended as it creates confusion (see below) and has been facing increasing opposition by many technical standards and legal entities in the past few years.
[Edit] Btw. there is an interesting table in the article you linked:
http://en.wikipedia.org/wiki/Byte#Names_...rent_units
It shows the percentual difference in size when using the incorrect unit names.
The terms KB, MB, GB, are all commonly used and understood, so therefore we use those.
On another note, that article may not be 100% accurate.
I think there is no need for the change because of how commonly these terms are known by the users. Notice how windows report them as KB, MB, GB, and not KiB, MiB, or GiB ..
No need to confuse it, we can't just link everyone to that wikipedia article when few questions pop-up.
Even if you decide not to change to the correct SI units I would advice that you change $l['size_kb'] = "KB"; to $l['size_kb'] = "kB";.
Uppercase 'k' is not and have never been an multiplier prefix.
Asad_Niazi Wrote:Notice how windows report them as KB, MB, GB, and not KiB, MiB, or GiB... No need to confuse it...
Well and how confusing might it be when buying an 4,7GB DVD and realising that you can just save 4,38GB on it?

It's the same problem, one unit is GB, the other is GiB.
well .. Most of the people have understood it, and well enough. I don't think MyBB should change it, because most of the users of MyBB understand (inaccurately so, but..) that 1KB = 1024 bytes. If you start putting in KiB, I am sure you are going to see threads popping in such as "Typo?", "what's KiB".. blah blah!!
and.. have you asked Microsoft already to put in a patch to say it in GiB instead of GB..

?
Asad_Niazi Wrote:and.. have you asked Microsoft already to put in a patch to say it in GiB instead of GB..
?
If they need 2 months to patch a simple bug, how long will they need to patch this one?
Well anyway, I understand your comments against this change. I just thought the MyBB team wants to put up an sign to show whats correct and what is not because this is one of the few boards that care about XHTML and validity.
I'm going to leave it this way in my board, the only disadvantage is that I'll have to patch this out every time the file gets updated

Going to go ahead and move into suggestions.