mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 19:55:46 +00:00
Move to GetGlobalTimeNs, fix GetTotalPhysicalMemoryAvailable
This commit is contained in:
parent
68a52e9050
commit
a69befa745
3 changed files with 7 additions and 9 deletions
|
@ -154,7 +154,7 @@ void Process::DecrementThreadCount() {
|
|||
}
|
||||
|
||||
u64 Process::GetTotalPhysicalMemoryAvailable() const {
|
||||
const u64 capacity{resource_limit->GetCurrentValue(LimitableResource::PhysicalMemoryMax) +
|
||||
const u64 capacity{resource_limit->GetFreeValue(LimitableResource::PhysicalMemoryMax) +
|
||||
page_table->GetTotalHeapSize() + GetSystemResourceSize() + image_size +
|
||||
main_thread_stack_size};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue