Skip to content

"KB", not "kB" in F::niceSize #2607

@rasteiner

Description

@rasteiner

Hello :)

Describe the bug
"kilobytes", in the context of memory, should be abbreviated as 'KB', currently it's 'kB'. (Or alternatively Kirby should use 1000 as a base for the math).

Additional context
AFAIK: conventionally 1kB = 1000 bytes and 1KB = 1024 bytes.
The nicesize function is using 1024 as a base.
The "standard" for the "power of two units" would actually be "KiB", "MiB", "GiB", etc. While I personally don't know anyone that actually uses those, the lowercase "k" seems to explicitly mean 1000.

See also https://en.wikipedia.org/wiki/Kilobyte and also https://en.wikipedia.org/wiki/Kibibyte

PS: I don't mean to sound pedantic.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions