Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: cleanup size and bandwidth units #1791

Merged
merged 2 commits into from
May 21, 2021
Merged

fix: cleanup size and bandwidth units #1791

merged 2 commits into from
May 21, 2021

Conversation

lidel
Copy link
Member

@lidel lidel commented May 19, 2021

This cleans up code around human-readable units and Closes #1778:

  • bytes in base-2 (GiB, MiB, KiB) used for file sizes to remove any unit confusion while keeping interop with 1024 way of thinking

    2021-05-20--00-34-50

  • bits in base-10 (Mbps, kbps) used for network bandwith, to match what the number that ISP is selling:

    2021-05-20--00-14-20

@jessicaschilling @olizilla would appreciate sanity check from your end. What units are expected by people these days? I've heard that macOS switched sizes in Finder to base-10, is that true?

This cleans up code around human readable units:

- base-2 (GiB, MiB, KiB) used for file sizes to remove any unit confusion
  while keeping interop with 1024 mindset

- base-10 (Mbps, kbps) used for network bandwith, to match what ISP are
  selling

Closes #1778
@lidel lidel temporarily deployed to Deploy May 19, 2021 22:52 Inactive
@jessicaschilling
Copy link
Contributor

This makes sense to me!

@lidel lidel temporarily deployed to Deploy May 20, 2021 12:50 Inactive
@lidel
Copy link
Member Author

lidel commented May 21, 2021

👍 we looked at this for a moment during GUI triage and while nobody felt strongly about this, it makes things more consistent with storage units used in storage systems.

@lidel lidel merged commit 1d99482 into main May 21, 2021
@lidel lidel deleted the fix/normalize-filesize branch May 21, 2021 14:16
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect use of ‘filesize’
2 participants