Garados007 / Garados007/MaxLib.WebServer

Use correct data volume prefixes

Open
#12 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Currently, 1024 bytes are shown as `1 KB` when `1 KiB` is correct. `KB` is only correct if the conversion factor is 1000 and not 1024.

This implementation is calculating the IEC-prefix and displaying the SI-prefix.

More details: https://en.wikipedia.org/wiki/Byte#Multiple-byte_units

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.