summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2020-08-15 14:11:37 -0400
committerAndreas Kling <kling@serenityos.org>2020-08-16 16:33:28 +0200
commitf47dbb6a58159993b37974c85a3cc9f1c00fa1e0 (patch)
tree91230e63eb97656580aa2f08e05de3f89b29e57e /Userland
parentaa9716673988597d270ee6223b42d5207fddc1ad (diff)
downloadserenity-f47dbb6a58159993b37974c85a3cc9f1c00fa1e0.zip
AK: Use IEC prefixes in human_readable_format
Windows uses "KB", "MB", "GB" as powers of two. macOS uses "kB", "MB", "GB" as powers of ten. "k", "M", "G" are standard SI prefixes that normally refer to powers of ten. The IEC introduced "KiB", "MiB", "GiB" to unambiguously refer to powers of two. It admittedly hasn't caught on that much, but it does have the advantage that it's unabigious what it means. So let's use it for user-visible sizes in SerenityOS. (Linux does all of the above in different places, depending on app and toolkit.)
Diffstat (limited to 'Userland')
0 files changed, 0 insertions, 0 deletions