Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions client/cs_prefs.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is part of BOINC.
// http://boinc.berkeley.edu
// Copyright (C) 2008 University of California
// Copyright (C) 2023 University of California
//
// BOINC is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License
Expand Down Expand Up @@ -675,7 +675,7 @@ void CLIENT_STATE::print_global_prefs() {
//
msg_printf(NULL, MSG_INFO, "- When computer is in use");
msg_printf(NULL, MSG_INFO,
"- 'In use' means mouse/keyboard input in last %.1f minutes",
"- 'In use' means mouse/keyboard input in last %.2f minutes",
global_prefs.idle_time_to_run
);
if (!global_prefs.run_if_user_active) {
Expand Down Expand Up @@ -736,10 +736,20 @@ void CLIENT_STATE::print_global_prefs() {
);
if (global_prefs.suspend_if_no_recent_input > 0) {
msg_printf(NULL, MSG_INFO,
"- Suspend if no input in last %f minutes",
"- Suspend if no input in last %.2f minutes",
global_prefs.suspend_if_no_recent_input
);
}
// It is possible that computing (CPU or GPU) could be suspended indefinitely if the idle time required before continuing computing
// is longer than the time required to suspend computing when the computer is idle. In this case an alert message will be sent.
//
if ((!global_prefs.run_if_user_active || !global_prefs.run_gpu_if_user_active) && (global_prefs.suspend_if_no_recent_input > 0) &&
((global_prefs.idle_time_to_run - global_prefs.suspend_if_no_recent_input) >= 0)) {
msg_printf(0, MSG_USER_ALERT,
"Preference settings don't allow computing (%.2f > %.2f). Please review.",
global_prefs.idle_time_to_run, global_prefs.suspend_if_no_recent_input
);
}

// general
//
Expand Down