mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibCore: Implement System::physical_memory_bytes on Windows
This commit is contained in:
parent
f9e90ca430
commit
6b86d8a44d
|
|
@ -239,4 +239,12 @@ unsigned hardware_concurrency()
|
|||
return si.dwNumberOfProcessors;
|
||||
}
|
||||
|
||||
u64 physical_memory_bytes()
|
||||
{
|
||||
MEMORYSTATUSEX ms = {};
|
||||
ms.dwLength = sizeof ms;
|
||||
GlobalMemoryStatusEx(&ms);
|
||||
return ms.ullTotalPhys;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user