Bug 374135 - Storage capacity shows lower unit than actual capacity
Summary: Storage capacity shows lower unit than actual capacity
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Import-MainView (show other bugs)
Version: 5.3.0
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-25 09:25 UTC by Victor Engmark
Modified: 2017-03-05 18:44 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.4.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Engmark 2016-12-25 09:25:56 UTC
How to reproduce:

- Open the import window
- Hover over the camera media and album library storage "progress bars"

The capacity of my 128 GB memory card is shown as "119.2 Mi B". It should instead:

- Display the correct unit.
- Not include a space inside the unit.
- Display SI 1000-based units like "GB" instead of "GiB", since the former is the standard for storage nowadays.
Comment 1 Maik Qualmann 2016-12-25 11:37:59 UTC
Git commit 3650af4e9fdbc0d3c4d72ad3a2620110682e5069 by Maik Qualmann.
Committed on 25/12/2016 at 11:36.
Pushed by mqualmann into branch 'master'.

fix displaying wrong unit in the import tooltip and remove spacing

M  +1    -1    libs/imageproperties/imagepropertiestab.cpp
M  +5    -5    utilities/importui/widgets/freespacewidget.cpp

https://commits.kde.org/digikam/3650af4e9fdbc0d3c4d72ad3a2620110682e5069
Comment 2 Maik Qualmann 2016-12-25 11:43:24 UTC
Dolphin for exemple shows also 1024 based unit (GiB). The function to show 1000 base unit is already implemented. I'm more for the current state, what do you think Gilles?

Maik
Comment 3 caulier.gilles 2016-12-25 13:14:03 UTC
The way to display storage unit hurt me also, but this have been normalized by IEC in 1998 and adopted by open source world step by step.

Read well this wikipedia pages :

https://en.wikipedia.org/wiki/Megabyte
https://en.wikipedia.org/wiki/Gigabyte#Consumer_confusion

If the current storage capacity details respect the norm, this is the right way.

Gilles Caulier
Comment 4 Victor Engmark 2016-12-25 13:44:20 UTC
(In reply to caulier.gilles from comment #3)
> The way to display storage unit hurt me also, but this have been normalized
> by IEC in 1998 and adopted by open source world step by step.
> 
> Read well this wikipedia pages :
> 
> https://en.wikipedia.org/wiki/Megabyte
> https://en.wikipedia.org/wiki/Gigabyte#Consumer_confusion
> 
> If the current storage capacity details respect the norm, this is the right
> way.

AFAICT these articles support my assertion that 1000-based units should be used:

- IEC recommends 1000-based units: "1 MB = 1000000 bytes (= 10002 B = 106 B) is the definition recommended by the International System of Units (SI) and the International Electrotechnical Commission IEC.[2] This definition is used in networking contexts and most storage media, particularly hard drives, flash-based storage,[3] and DVDs […]"
- "Practically all manufacturers of hard disk drives and flash-memory disk devices[3][4] continue to define one gigabyte as 1000 000 000 bytes, which is displayed on the packaging."

While GiB is technically *accurate*, GB would therefore be *less confusing*.
Comment 5 Simon 2016-12-25 14:16:37 UTC
On 25/12/16 14:44, Victor Engmark wrote:
> https://bugs.kde.org/show_bug.cgi?id=374135
>
> --- Comment #4 from Victor Engmark <victor.engmark@gmail.com> ---
> (In reply to caulier.gilles from comment #3)
>> The way to display storage unit hurt me also, but this have been normalized
>> by IEC in 1998 and adopted by open source world step by step.
>>
>> Read well this wikipedia pages :
>>
>> https://en.wikipedia.org/wiki/Megabyte
>> https://en.wikipedia.org/wiki/Gigabyte#Consumer_confusion
>>
>> If the current storage capacity details respect the norm, this is the right
>> way.
> AFAICT these articles support my assertion that 1000-based units should be
> used:
>
> - IEC recommends 1000-based units: "1 MB = 1000000 bytes (= 10002 B = 106 B) is
> the definition recommended by the International System of Units (SI) and the
> International Electrotechnical Commission IEC.[2] This definition is used in
> networking contexts and most storage media, particularly hard drives,
> flash-based storage,[3] and DVDs […]"
> - "Practically all manufacturers of hard disk drives and flash-memory disk
> devices[3][4] continue to define one gigabyte as 1000 000 000 bytes, which is
> displayed on the packaging."
>
> While GiB is technically *accurate*, GB would therefore be *less confusing*.
>
Whether base 10 or base 2 units are used is debatable, but the naming is
not. It is ubiquitously agreed upon that GB/MB/... mean base 10 and
GiB/MiB/... base 2. True, there is still lots of places where GB/MB/...
is wrongly used for base 2 values, but that is erroneous. Some
circumvent the problem by only writing the prefix (G/M/...) which can
mean anything, but that is in my opinion simply lazy. AFAIK in the linux
world base 2 is still prevailing while windows mostly uses base 10 (I
don't know about apple).
As long as digikam uses consistently the same base in my opinion
anything is fine, just use the correct prefixes. I guess changing from
one prefix to the other would be simply too much effort for too little gain.
Comment 6 Maik Qualmann 2016-12-25 15:52:30 UTC
Many programs use 1024-based for example Dolphin, Krusader... The operating systems iOS and Windows (uses wrong unit) also. File manager under Ubuntu? Newer versions of OS X use 1000-based. At the moment we will not change it.

Maik
Comment 7 Maik Qualmann 2017-01-01 19:03:47 UTC
*** Bug 374432 has been marked as a duplicate of this bug. ***
Comment 8 Maik Qualmann 2017-03-05 18:44:36 UTC
*** Bug 377248 has been marked as a duplicate of this bug. ***