1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-10 14:11:43 +00:00

pm: fix minor resource manager bugs

This commit is contained in:
Michael Scire 2019-07-03 01:19:48 -07:00 committed by SciresM
parent c20774ff5d
commit 27ff119ba6

View file

@ -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. */