mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-09 17:25:04 +00:00
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.
This commit is contained in:
committed by
Andreas Kling
parent
a68650a7b4
commit
430b265cd4
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user