| Summary: | kiB, MiB, GiB TiB and KB, MB, GB TB | ||
|---|---|---|---|
| Product: | [Applications] partitionmanager | Reporter: | vmelkon |
| Component: | general | Assignee: | Andrius Štikonas <andrius> |
| Status: | REPORTED --- | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 21.12.3 | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
vmelkon
2024-08-22 02:55:23 UTC
We do use that frameworks API https://invent.kde.org/system/kpmcore/-/blob/master/src/util/capacity.cpp?ref_type=heads#L129 though maybe we don't update unit names, so it still shows MiB... I think I had seen code like that somewhere: KFormat().formatByteSize(size, precision); (This comes from the link you gave) I think there is no need to hardcode the unit (kiB, MiB, GiB, TiB) since the KDE framework automatically generates the number and the unit. I don't know exactly which of their functions does it. |