English (Global) > Bug reporting

Units are used wrong

(1/3) > >>

Mike7294:
I've tested File & Image Uploader v5.4.9 and noted that the units for amounts of data are used wrong. Here are the correct calculations:

1 B = 1 Byte = 8 bit

SI prefixes (see e.g. http://en.wikipedia.org/wiki/SI_prefix)
1 kB = 1000 B  (note the lowercase "k")
1 MB = 1000 kB = 1'000'000 B
1 GB = 1000 MB = 1'000'000'000 B

IEC prefixes (see e.g. http://en.wikipedia.org/wiki/IEC_prefix)
1 KiB = 1024 B
1 MiB = 1024 KiB = 1'048'576 B
1 GiB = 1024 MiB = 1'073'741'824 B

Please make sure that by default the SI prefixes are used. If desired, there could be an option to switch to IEC prefixes.

z_o_o_m:
no, they are not ...

Mike7294:
That's strange. Perhaps you have another version. I have tested version 5.4.9 (free). I have just tried again to upload a file with 40.000.000 bytes (= 40 MB = 38.14697 MiB), and the program displays "38.15 MB", which is wrong. It seems that the program uses the factor 1024 for calculations, but SI prefixes for display.

Furthermore, the program displays the upload speed in "KB/s". However, "KB" (with a capital "k") is informally used for 1024 B, but data rates are usually specified by using SI prefixes. So it would be better to use "kB/s".

z_o_o_m:
1KB=1024B
it is correct and I will NOT change anything

Mike7294:
Yes, but 1 kB = 1000 B. In this case a difference can be made by the lowercase or uppercase "k". However, with Megabyte (MB) this is not possible, because the SI symbol is already uppercase. So to indicate the difference, the unit "Mebibyte" with the symbol "MiB" was defined.

I would prefer to use Megabytes, because they are easier to imagine and to calculate with. E.g. if I upload 15 files with 100 MB each, then the total amount of data is 1500 MB which is exactly 1.5 GB. However, if I upload 15 files with 100 MiB = 104.8576 MB each, then the total amount is 1500 MiB, but that's not 1.5 GiB, but 15 * 104.8576 MB = 1572.864 MB = 1.57 GB = 1.46 GiB.

The best would be if there would be an option to switch between SI and IEC prefixes, because some file hosters use calculations based on 1024, although they use SI prefixes, e.g. MegaUpload.

Navigation

[0] Message Index

[#] Next page

Reply

Go to full version