Bug 420614 - Devices panel: "Hard disk of xxx.x GiB" displays a strange xxx.x value (NOT being GiB)
Summary: Devices panel: "Hard disk of xxx.x GiB" displays a strange xxx.x value (NOT b...
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 19.12.3
Platform: Ubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-26 11:33 UTC by Valdo
Modified: 2020-05-14 02:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?