Skip to content

Mirrorbits measures file sizes in MiB/GiB, but says it's using MB/GB #205

Description

@Pointedstick

KDE has an instance of mirrorbits, and we've noticed a mismatch in the size display: the unit being used is incorrect.

For example, https://files.kde.org/kde-linux/kde-linux_202512081900.raw.mirrorlist says:

The file /kde-linux/kde-linux_202512081900.raw has a size of 5.8 GB (6277021696 bytes) and was last modified on Mon, 08 Dec 2025 19:22:15 UTC.

"GB" is a "Gigabyte", which is exactly 1 billion bytes — a decimal metric unit. 6277021696 bytes is approximately 6.27 Gigabytes (GB), not 5.8.

6277021696 bytes is 5.8 of something, though. That something is a Gibibyte, with the abbreviation GiB. This is a binary IEC unit.

My preference would be to continue using Gigabytes/GB (as this is by far the more common unit of measurement), and make the number accurate.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions