refactor(macos)!: change std.mem.page_size to std.heap.page_size_min because of zig v0.14.0

This commit is contained in:
utox39
2025-03-07 15:47:25 +01:00
parent 78ad6fd841
commit 62fcba9a69

View File

@@ -243,7 +243,7 @@ pub fn getRamInfo() !RamInfo {
return error.HostStatistics64Failed; return error.HostStatistics64Failed;
} }
const page_size: u64 = std.mem.page_size; const page_size: u64 = std.heap.page_size_min;
const ram_usage = (info.active_count + info.wire_count) * page_size; const ram_usage = (info.active_count + info.wire_count) * page_size;
// Converts Bytes to Gigabytes // Converts Bytes to Gigabytes