Skip to content
New issue

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

transmission uses GB instead of GiB #198

Open
ewtoombs opened this issue Feb 27, 2017 · 18 comments
Open

transmission uses GB instead of GiB #198

ewtoombs opened this issue Feb 27, 2017 · 18 comments
Labels

Comments

@ewtoombs
Copy link
Contributor

Yes, it's a BUG! NOBODY expects GB! EVERYBODY expects GiB!

@timmerk
Copy link

timmerk commented Mar 3, 2017

Not a bug. I just asked a bunch of people, and no one knows what a GiB is.

@mikedld
Copy link
Member

mikedld commented Mar 3, 2017

Related to TRAC-4703, TRAC-4747.

@ewtoombs
Copy link
Contributor Author

ewtoombs commented Mar 3, 2017

They may not know what the letters GiB mean, but they do know what a GiB is. GiB is the unit they are familiar with. In fact people don't know what a GB is. A GB is considerably smaller than a GiB and is almost never used. Except by Transmission. Transmission is telling people the files it is downloading are bigger than they actually are.

@timmerk
Copy link

timmerk commented Mar 3, 2017

All Mac apps use "GB", not "GiB". Chrome uses GB. Firefox uses GB. Mac OS X uses GB. Windows uses GB. And so on.

@ewtoombs
Copy link
Contributor Author

ewtoombs commented Mar 3, 2017

I'm not talking about the spelling. Spell it however you want to. I'm talking about the unit itself. Transmission can keep labelling it GB if they want to.

@ewtoombs
Copy link
Contributor Author

ewtoombs commented Mar 3, 2017

And every one of those programs uses the GiB. They spell it GB, but they're using the GiB—not the GB. Almost nobody uses the GB.

@timmerk
Copy link

timmerk commented Mar 3, 2017

Ohh, ok, ok. I agree with you then. Keep spelling as "GB" but use GiB as actual unit.

@timmerk
Copy link

timmerk commented Mar 3, 2017

No, you weren't clear that you were talking about just the units, but not the actual text.

@ewtoombs
Copy link
Contributor Author

ewtoombs commented Mar 3, 2017

Oh right I see what you mean. Yeah, Transmission really is doing it wrong. They aren't just labelling it wrong. And in fact, GB the label can be considered "right enough", since historically, it used to be the only label and people are still more familiar with it as a label.

@ewtoombs
Copy link
Contributor Author

ewtoombs commented Mar 3, 2017

Other clients do use the right label. See for example, qbittorrent.

@xelra
Copy link

xelra commented Mar 8, 2017

That would actually be really, really bad. If you want GiB, you write GiB. If you want GB, you write GB. But don't mislabel GiB as GB!

@ewtoombs
Copy link
Contributor Author

I agree, xelra, it is better to write GiB. It is common practice, though, to write GB, so if the makers are concerned about confusing their users, I'd understand if they decided to keep it that way. They definitely need to start using the GiB unit in their size calculations, though.

@foldback
Copy link

Transmission should use GiB on Linux and GB on macOS. macOS switched from GiB to GB back with 10.6 Snow Leopard. Since the OS itself and most (updated) apps use GB, Transmission should stick to convention.

@killemov
Copy link

We have hard-drive manufacturers to thank for this distinction. A kilobyte used to be 1024 bytes, no questions asked. They opted to go metric and make it 1000 bytes. Now kB is 1000 and kiB is 1024.

@RuthlessRuler
Copy link

Any Updates on Implementing this?

@gingerbeardman
Copy link

I would prefer Transmission to display Kilobits/Megabits rather than Kilobytes/Megabytes, so I can more easily work with my allocated 50Megabit broadband.

4500KB/s = 36Megabits/s

Screen shot 2019-12-19 at 11 32 29

@Coeur
Copy link
Collaborator

Coeur commented May 5, 2022

Regarding macOS, the code uses the "File" style:

return [NSByteCountFormatter stringFromByteCount:size countStyle:NSByteCountFormatterCountStyleFile];

From the doc, there are four possible styles:
https://developer.apple.com/documentation/foundation/bytecountformatter/countstyle

.file uses the .decimal style, but that may change over time.
.memory uses the .binary style, but that may change over time.
.decimal Causes 1000 bytes to be shown as 1 KB.
.binary Causes 1024 bytes to be shown as 1 KB.

So... in all scenarios, Apple will display "GB", not "GiB".
We can either leave it like that, wait for Apple to change its "File" style preferences everywhere, or adopt the Binary style to change the maths ourselves (but still displaying as GB). Or do some more complex localisation overrides ourselves.

@GaryElshaw

This comment was marked as off-topic.

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

No branches or pull requests

12 participants