Skip to content

Size reported incorrectly due to usage of factor 1024 #218

@MatthiasKunnen

Description

@MatthiasKunnen

What happens
When the size is 4632 bytes, size-limit reports 4.52 KB. However, this size is in KiB. This is due to the bytes package not currently following, and not willing to follow, the standard set forth by ISO, BIPM, and IEC.

What should happen
size-limit should follow the standard and report 4.63 KB.

Solution
Use a package like pretty-bytes or bytes-iec which follows the standards and converts sizes properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions