From e1b3fcc3b0c44423e595795b256f41bb4fda94bb Mon Sep 17 00:00:00 2001 From: cathery Date: Tue, 21 Apr 2020 03:20:17 +0300 Subject: [PATCH] Fix sys-con using 100% of the cpu core 3 --- source/Sysmodule/source/config_handler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Sysmodule/source/config_handler.cpp b/source/Sysmodule/source/config_handler.cpp index d99611c..798f914 100644 --- a/source/Sysmodule/source/config_handler.cpp +++ b/source/Sysmodule/source/config_handler.cpp @@ -22,7 +22,7 @@ namespace syscon::config void ConfigChangedCheckThreadFunc(void *arg); - ams::os::StaticThread<0x2'000> g_config_changed_check_thread(&ConfigChangedCheckThreadFunc, nullptr, 0x3F); + ams::os::StaticThread<0x2'000> g_config_changed_check_thread(&ConfigChangedCheckThreadFunc, nullptr, 0x3E); bool is_config_changed_check_thread_running = false; @@ -172,7 +172,7 @@ namespace syscon::config { WriteToLog("Starting config check thread!"); do { - if (R_SUCCEEDED(waitSingle(filecheckTimerWaiter, 0))) + if (R_SUCCEEDED(waitSingle(filecheckTimerWaiter, UINT64_MAX))) { if (config::CheckForFileChanges()) {