SCR / CLIENT: fix get_screensaver_tasks RPC so it does not exclude tasks suspended for CPU throttling. Fixes the screensaver problem for V6 graphics.

svn path=/trunk/boinc/; revision=15738
This commit is contained in:
Charlie Fenton 2008-08-01 09:50:31 +00:00
parent 3f8008ec97
commit 45c92838a2
2 changed files with 13 additions and 3 deletions

View File

@ -6045,7 +6045,7 @@ David 30 July 2008
client_state.C
Rom 31 July 2008
- SCR: Don't treat CPU throttling as BOINC beeing suspended.
- SCR: Don't treat CPU throttling as BOINC being suspended.
Fixes #706
- MGR: If the reminder frequency is 0, then don't show any
reminder messages.
@ -6055,4 +6055,12 @@ Rom 31 July 2008
clientscr/
screensaver.cpp
screensaver_win.cpp
Charlie 1 Aug 2008
- SCR / CLIENT: fix get_screensaver_tasks RPC so it does not
exclude tasks suspended for CPU throttling. Fixes the
screensaver problem for V6 graphics. Checked into
boinc_core_release_6_2_15 tag.
client/
gui_rpc_server_ops.C

View File

@ -488,7 +488,9 @@ static void handle_get_screensaver_tasks(MIOFILE& fout) {
);
for (i=0; i<gstate.active_tasks.active_tasks.size(); i++) {
atp = gstate.active_tasks.active_tasks[i];
if (atp->task_state() == PROCESS_EXECUTING) {
if ((atp->task_state() == PROCESS_EXECUTING) ||
((atp->task_state() == PROCESS_SUSPENDED) &&
(gstate.suspend_reason & SUSPEND_REASON_CPU_USAGE_LIMIT))) {
atp->result->write_gui(fout);
}
}