Merge pull request #11825 from liamwhite/system-resource

kernel: fix incorrect calculation of used non system memory value
This commit is contained in:
Fernando S 2023-10-20 16:40:15 +02:00 committed by GitHub
commit bab4a13a41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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