Skip to content

Unit measurements shouldn't convert from XiB to XB #16

Open
@mmstick

Description

@mmstick
let block_sectors = 1953458176;
let size = ByteSize::kib(block_sectors / 2);
println!("{}", size);

Expected Output:

931.48 GiB

Actual Output:

1000.2 GB

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions