From 71973ee95f67cf481e1f82956a7e406b15e01934 Mon Sep 17 00:00:00 2001 From: davidpanderson Date: Thu, 5 Sep 2024 20:25:21 -0700 Subject: [PATCH] Debug --- client/cs_prefs.cpp | 8 ++++---- lib/prefs.h | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/client/cs_prefs.cpp b/client/cs_prefs.cpp index ea37759627..377a49828d 100644 --- a/client/cs_prefs.cpp +++ b/client/cs_prefs.cpp @@ -675,15 +675,15 @@ void CLIENT_STATE::read_global_prefs( file_xfers->set_bandwidth_limits(true); file_xfers->set_bandwidth_limits(false); #endif + + bool have_gpu = coprocs.n_rsc > 1; + global_prefs.need_idle_state = global_prefs.get_need_idle_state(have_gpu); print_global_prefs(); request_schedule_cpus("Prefs update"); request_work_fetch("Prefs update"); #ifndef SIM active_tasks.request_reread_app_info(); #endif - - bool have_gpu = coprocs.n_rsc > 1; - global_prefs.need_idle_state = global_prefs.get_need_idle_state(have_gpu); } void CLIENT_STATE::print_global_prefs() { @@ -820,7 +820,7 @@ void CLIENT_STATE::print_global_prefs() { #endif if (!global_prefs.need_idle_state) { msg_printf(NULL, MSG_INFO, - "- Prefs don't depend on whether computer is in use" + "- Preferences don't depend on whether computer is in use" ); } msg_printf(NULL, MSG_INFO, diff --git a/lib/prefs.h b/lib/prefs.h index 5f6aea4a8f..5248694d42 100644 --- a/lib/prefs.h +++ b/lib/prefs.h @@ -221,6 +221,7 @@ struct GLOBAL_PREFS { // if (!run_if_user_active) return true; if (have_gpu && !run_gpu_if_user_active) return true; + if (suspend_if_no_recent_input) return true; if (niu_cpu_usage_limit && niu_cpu_usage_limit != cpu_usage_limit) return true; if (niu_max_ncpus_pct && niu_max_ncpus_pct != max_ncpus_pct) return true; if (niu_suspend_cpu_usage && niu_suspend_cpu_usage != suspend_cpu_usage) return true;