You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Historically 1KB was 1024 bytes, however since these measures have been incorporated in the International System of Units (SI) they have been uniformed with the other measures where 1 KB = 1000 bytes and 1 MB is 1000000. The power of 2 unit of 1024 it is now referred as KiB, MiB, GiB etc
Very nice library!!.
Browsing the code I spotted a little issue in
convert-to-human-readable
at:clj-memory-meter/src/clj_memory_meter/core.clj
Line 102 in b502fda
Historically 1KB was 1024 bytes, however since these measures have been incorporated in the International System of Units (SI) they have been uniformed with the other measures where 1 KB = 1000 bytes and 1 MB is 1000000. The power of 2 unit of 1024 it is now referred as KiB, MiB, GiB etc
Please see the following article.
https://en.wikipedia.org/wiki/Megabyte
So it is adviseable that you either update the unit to
1000
or the labels toMiB
instead ofMB
.The text was updated successfully, but these errors were encountered: