1
0
mirror of https://github.com/cathery/sys-con.git synced 2024-11-16 14:09:51 +00:00

Fix sys-con using 100% of the cpu core 3

This commit is contained in:
cathery 2020-04-21 03:20:17 +03:00
parent 10b0d3a499
commit d1bce55c9f

View File

@ -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())
{