summaryrefslogtreecommitdiff
path: root/Kernel/Profiling.cpp
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 /Kernel/Profiling.cpp
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 'Kernel/Profiling.cpp')
-rw-r--r--Kernel/Profiling.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Profiling.cpp b/Kernel/Profiling.cpp
index 2765b59d34..18fff9aadc 100644
--- a/Kernel/Profiling.cpp
+++ b/Kernel/Profiling.cpp
@@ -64,7 +64,7 @@ void start(Process& process)
s_pid = process.pid();
if (!s_profiling_buffer) {
- s_profiling_buffer = RefPtr<KBufferImpl>(KBuffer::create_with_size(8 * MB).impl()).leak_ref();
+ s_profiling_buffer = RefPtr<KBufferImpl>(KBuffer::create_with_size(8 * MiB).impl()).leak_ref();
s_profiling_buffer->region().commit();
s_slot_count = s_profiling_buffer->size() / sizeof(Sample);
}