From 27ff119ba6ef2c101bc82f105eb00c6d718ab591 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 3 Jul 2019 01:19:48 -0700 Subject: [PATCH] pm: fix minor resource manager bugs --- stratosphere/pm/source/impl/pm_resource_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stratosphere/pm/source/impl/pm_resource_manager.cpp b/stratosphere/pm/source/impl/pm_resource_manager.cpp index 657746fee..7c625b49b 100644 --- a/stratosphere/pm/source/impl/pm_resource_manager.cpp +++ b/stratosphere/pm/source/impl/pm_resource_manager.cpp @@ -124,7 +124,7 @@ namespace sts::pm::resource { if (resource == LimitableResource_Memory) { continue; } - R_TRY(svcSetResourceLimitLimitValue(GetResourceLimitHandle(group), LimitableResources[resource], g_resource_limits[group][resource])); + R_TRY(svcSetResourceLimitLimitValue(GetResourceLimitHandle(group), resource, g_resource_limits[group][resource])); } return ResultSuccess; } @@ -223,7 +223,7 @@ namespace sts::pm::resource { } /* Set number of extra threads. */ - g_extra_application_threads_available = total_threads_available; + g_extra_application_threads_available = total_threads_available - total_threads_allocated; } /* Choose and initialize memory arrangement. */