This commit is contained in:
davidpanderson 2024-09-05 20:25:21 -07:00
parent d295e0c93c
commit 71973ee95f
2 changed files with 5 additions and 4 deletions

View File

@ -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,

View File

@ -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;