refactor(macos)!: change std.mem.page_size to std.heap.page_size_min because of zig v0.14.0
This commit is contained in:
1 parent
78ad6fd841
commit
62fcba9a69
1 file changed
+1
-1
+1
-1
@@ -243,7 +243,7 @@ pub fn getRamInfo() !RamInfo {
|
||||
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;
|
||||
|
||||
// Converts Bytes to Gigabytes
|
||||
|
||||
Reference in new issue
Block a user