From 54de645dc35d7e7769026cffc7ef5288abda2f0c Mon Sep 17 00:00:00 2001 From: TuxSH Date: Wed, 17 Apr 2019 02:03:02 +0200 Subject: [PATCH] pm: fix inverted condition --- sysmodules/pm/source/reslimit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysmodules/pm/source/reslimit.c b/sysmodules/pm/source/reslimit.c index 9cc146e..b3bc0d9 100644 --- a/sysmodules/pm/source/reslimit.c +++ b/sysmodules/pm/source/reslimit.c @@ -327,7 +327,7 @@ void setAppCpuTimeLimitAndSchedModeFromDescriptor(u64 titleId, u16 descriptor) if (cpuTime != 0) { // Set core1 scheduling mode g_manager.maxAppCpuTime = cpuTime & 0x7F; - assertSuccess(svcKernelSetState(6, 3, (cpuTime & 0x80) ? 1LL : 0LL)); + assertSuccess(svcKernelSetState(6, 3, (cpuTime & 0x80) ? 0LL : 1LL)); } else { u32 titleUid = ((u32)titleId >> 8) & 0xFFFFF; g_manager.maxAppCpuTime = 80;