Skip to content

[BUG] scrutiny uses wrong unit for drive capacity #330

@dom6770

Description

@dom6770

Describe the bug
The displayed unit in the webinterface for drive capacity is wrong. It displays base 1000 units (GB) although the calculated size is base 1024.
It's the same issue with Windows, which also calculates with base 1042, but uses base 1000 units.
So, scrutiny calculates with base 1024, but does not use base 1042 units, which should be f.ex. Gibibyte (GiB).

Expected behavior
Either

a) calculate with base 1000 and display base 1000 (500 GB)
b) calculate with base 1024 and display base 1024 (465 GiB)

Preferably, let the user decide in the settings.

Screenshots
image

Same in Windows:
image

smartctl reports the capacity correctly
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions