summaryrefslogtreecommitdiff
path: root/MenuApplets/ResourceGraph
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2020-08-15 13:55:00 -0400
committerAndreas Kling <kling@serenityos.org>2020-08-16 16:33:28 +0200
commit430b265cd45167fb2dca2323ea5f5b910be00a1d (patch)
tree703e3fb9cb2f752b8a85f6cab52698b94576abc0 /MenuApplets/ResourceGraph
parenta68650a7b41f0bb99d26a1405baaca33c1dfbcb6 (diff)
downloadserenity-430b265cd45167fb2dca2323ea5f5b910be00a1d.zip
AK: Rename KB, MB, GB to KiB, MiB, GiB
The SI prefixes "k", "M", "G" mean "10^3", "10^6", "10^9". The IEC prefixes "Ki", "Mi", "Gi" mean "2^10", "2^20", "2^30". Let's use the correct name, at least in code. Only changes the name of the constants, no other behavior change.
Diffstat (limited to 'MenuApplets/ResourceGraph')
-rw-r--r--MenuApplets/ResourceGraph/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/MenuApplets/ResourceGraph/main.cpp b/MenuApplets/ResourceGraph/main.cpp
index f27341c6dc..ad2e97d892 100644
--- a/MenuApplets/ResourceGraph/main.cpp
+++ b/MenuApplets/ResourceGraph/main.cpp
@@ -80,7 +80,7 @@ private:
float total_memory = allocated + available;
float memory = (float)allocated / total_memory;
m_history.enqueue(memory);
- m_tooltip = String::format("Memory: %.1f MiB of %.1f MiB in use",(float)allocated / MB, total_memory / MB);
+ m_tooltip = String::format("Memory: %.1f MiB of %.1f MiB in use", (float)allocated / MiB, total_memory / MiB);
break;
}
default: