Bug 420614

Summary: Devices panel: "Hard disk of xxx.x GiB" displays a strange xxx.x value (NOT being GiB)
Product: [Applications] dolphin Reporter: Valdo <gnu4ever>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: minor CC: kfm-devel
Priority: NOR    
Version: 19.12.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Valdo 2020-04-26 11:33:36 UTC
SUMMARY
Wrong calculation of disk partitions' capacity?

STEPS TO REPRODUCE
The "Hard disk" I'm mentioning is actually a disk partition.
Command 'df -k' lists a capacity of 294243128 blocks of 1K (that is, 280,6 GiB) for a given partition.

OBSERVED RESULT
Dolphin's "Devices" panel displays 286.1 GiB (wrong) for that partition.

Note: same issue (if confirmed to be an issue - in all cases, pretty misleading) observed with kdepartitionmanager, showing 286.10 GiB.
On the other hand, the Device properties (in Dolphin) show a capacity of 280,6 GiB (correct).

EXPECTED RESULT
According to me, Dolphin's "Devices" panel should display 280,6 GiB.

Note: the same expected result goes for kdepartitionmanager.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

ADDITIONAL INFORMATION
Not sure whether there is a link with Bug 292795 or not (KDE4 at the time).
Comment 1 Valdo 2020-04-26 11:41:18 UTC
Sorry for mixing , (comma) and . (dot) in my report for the decimal separator. In French, a comma is used, in English it's a dot :)
Comment 2 Christoph Feck 2020-05-14 02:50:28 UTC
Does the size shown in the Devices panel come from Solid?