Mojira Archive
MC-184981

Debug overlay mislabels memory units

The debug display shows the memory usage using MB (Megabyte = 10^6 bytes) as the unit.

Expected behaviour:

The memory usage is displayed in Megabytes.

Actual behaviour:

In reality it displays MiB (Mebibyte = 2^20 bytes). I've verified that in code where divides the incoming number of bytes by 1024 twice.

 

And before you ask, yeah I know it's somewhat commonly used that way. But I do consider it an error and it contradicts the SI. I would be fixable by simply adding an "i" in the middle and could also help reduce misuse in other places.

Unresolved

Necro

2020-05-21, 09:39 AM

2024-09-28, 10:34 AM

5

1

Confirmed

Debug, UI

1.15.2, 20w51a, 1.17.1, 24w39a

-