1
0
Fork 0
forked from suyu/suyu

kernel: fix incorrect calculation of used non system memory value

This commit is contained in:
Liam 2023-10-20 09:12:10 -04:00
parent 85a89ca3e3
commit 249db0a59b

View file

@ -149,7 +149,7 @@ u64 KProcess::GetTotalPhysicalMemoryUsed() {
} }
u64 KProcess::GetTotalPhysicalMemoryUsedWithoutSystemResource() { u64 KProcess::GetTotalPhysicalMemoryUsedWithoutSystemResource() {
return this->GetTotalPhysicalMemoryUsed() - this->GetSystemResourceUsage(); return this->GetTotalPhysicalMemoryUsed() - this->GetSystemResourceSize();
} }
bool KProcess::ReleaseUserException(KThread* thread) { bool KProcess::ReleaseUserException(KThread* thread) {