After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 551541 - wrong use of si-prefix , when displaying the size
wrong use of si-prefix , when displaying the size
Status: RESOLVED DUPLICATE of bug 427807
Product: nautilus
Classification: Core
Component: File Properties Dialog
2.22.x
Other All
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-09-09 16:59 UTC by Tobias Domhan
Modified: 2008-09-10 03:37 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Tobias Domhan 2008-09-09 16:59:10 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:
Comment 1 Tobias Domhan 2008-09-09 17:57:12 UTC
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
Comment 2 A. Walton 2008-09-10 03:37:45 UTC
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 ***