From 767e702a70a912c4402c00c239beae45d06df3fa Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Tue, 16 Nov 2021 23:18:47 -0800 Subject: [PATCH] kern: correct TotalUserPhysicalMemorySize (closes #1710) --- libraries/libmesosphere/source/kern_k_process.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libmesosphere/source/kern_k_process.cpp b/libraries/libmesosphere/source/kern_k_process.cpp index 5b2b509fe..01292253b 100644 --- a/libraries/libmesosphere/source/kern_k_process.cpp +++ b/libraries/libmesosphere/source/kern_k_process.cpp @@ -893,7 +893,7 @@ namespace ams::kern { size_t KProcess::GetTotalUserPhysicalMemorySize() const { /* Get the amount of free and used size. */ const size_t free_size = m_resource_limit->GetFreeValue(ams::svc::LimitableResource_PhysicalMemoryMax); - const size_t used_size = this->GetUsedNonSystemUserPhysicalMemorySize(); + const size_t used_size = this->GetUsedUserPhysicalMemorySize(); const size_t max_size = m_max_process_memory; if (used_size + free_size > max_size) {