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:
parent
c20774ff5d
commit
27ff119ba6
1 changed files with 2 additions and 2 deletions
|
@ -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. */
|
||||
|
|
Loading…
Reference in a new issue