GNOME Bugzilla – Bug 551541
wrong use of si-prefix , when displaying the size
Last modified: 2008-09-10 03:37:45 UTC
Please describe the problem: for the size of files there exist two different units: -SI prefixes multiple of 10, 10^3=kilo, 10^6=mega etc -Binary prefixs multiple of 2 kibi (Ki)=2^10, mebi(Mi)=2^20 for example I got a file here that has a size of 18763826 bytes. in MB (SI Prefix) this would be: (18763826bytes)/10^6 = 18,76 MB in MiB(binary Prefix this would be (18763826bytes)/2^20 = 17.894578934 MiB however this is what nautilus displays: 17.9 MB (18763826 bytes) which is wrong! it divdes through 2^20 but uses the SI Prefix. There would be two possibilities solving this: 17.9 MiB (18763826 bytes) -> Change MB to MiB 18,76 MB MiB (18763826 bytes) -> use 10^6 instead of 2^20 this is of course not only a problem with mega/mebi but all other unit prefixes, too.(kilo/kibi etc.) Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
17.9 MiB (18763826 bytes) -> Change MB to MiB 18,76 MB MiB (18763826 bytes) -> use 10^6 instead of 2^20 should be: 17.9 MiB (18763826 bytes) -> Change MB to MiB 18,76 MB (18763826 bytes) -> use 10^6 instead of 2^20 of course
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of 427807 ***