8000 Changed to uppercase B for Bytes by johnybradshaw · Pull Request #544 · sivel/speedtest-cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Changed to uppercase B for Bytes #544

New issue 8000

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

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

Already on GitHub? Sign in to your account

Closed
wants to merge 0 commits into from

Conversation

johnybradshaw
Copy link

This makes it clearer, and is the standard way of representing the difference between bit and Byte.

@jschwender
Copy link

I agree. Standard names units "bit" (bit) or "B" (byte), "b" for bit is not standard.
IEC 60027-2, Ed. 3.0, (2005–2008): Letter symbols to be used in electrical technology – Part 2: Telecommunications and electronics.

@kdopen
Copy link
kdopen commented May 19, 2021

This makes it clearer, and is the standard way of representing the difference between bit and Byte.

But only in abbreviations such as kbit vs kB or Mbit vs MB. But when using the whole word (bit, byte) one sticks with a non-capitalized form unless the unit is a proper name (e.g. Ohm, Volt, Ampere vs miles, inches, bits, or bytes). The only times you would want "Byte" instead of "byte" are

  • As the first world of a sentence
  • As part of a Title Case sentence

If you are trying to catch those cases, then you also need to change 'bit' to 'Bit' in the same line.

If, instead, you are trying to correct the "Mbit/s" and "Mbyte/s" that are displayed, a more accurate change would be to replace "byte" with "B" - producing the technically correct "MB/s" and "Mbit/s".

Then, of course, you need to decide if you are following JEDEC, IEC, or some other standard as they don't all agree.

BTW I did check the code, and "Mbit" or "MB" are correct for this implementation, not "Mibit" or "MiB"

@jschwender
Copy link

If we talk about a number followed by a prefix and a unit, school grammar is unlikely normative. The most recent standard is IEC 80000-13:2008, and this is the one that is referred by major standardization comittees (BIMP, NIST, IEC).

@Forza-tng
Copy link

IMHO, it would be best to use the standard IEC units based on binary instead decimal base, since we always have defined internet speeds with a binary base (1024 bits = 1 kilobit)

With decimal base we have 1000 bytes = 1kB = 8000 bits = 8kbit.
With binary base we have 1024 bytes = 1KiB = 8192 bits = 8 Kibit

Speeds could then be noted as 8192 Kibit/s, 1024 KiB/s, 8 Mibit/s or 1 MiB/s.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0