From 430b265cd45167fb2dca2323ea5f5b910be00a1d Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Sat, 15 Aug 2020 13:55:00 -0400 Subject: 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. --- MenuApplets/ResourceGraph/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MenuApplets/ResourceGraph') 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: -- cgit v1.2.3