*** empty log message ***

svn path=/trunk/boinc/; revision=3872
This commit is contained in:
Daniel Hsu 2004-07-14 18:28:07 +00:00
parent 8dca1a1fcd
commit c382cfca25
2 changed files with 19 additions and 4 deletions

View File

@ -15208,3 +15208,11 @@ David 13 July 2004
gui_rpc_client.C,h
gui_rpc_server.C
gui_test.C
Daniel 2004-07-14
- schedule_cpus() now returns false if no projects had runnable
results. this should behave more nicely with do_something().
client/
cs_apps.C

View File

@ -458,13 +458,20 @@ bool CLIENT_STATE::schedule_cpus(bool must_reschedule) {
cpu_sched_work_done_this_period = 0;
cpu_sched_last_time = time(0);
if (total_resource_share > 0.0) {
set_client_state_dirty("schedule_cpus");
}
if (some_app_started) {
app_started = cpu_sched_last_time;
}
return true;
// debts and active_tasks can only change if some project had
// a runnable result (and thus if total_resource_share
// is positive)
//
if (total_resource_share > 0.0) {
set_client_state_dirty("schedule_cpus");
return true;
} else {
return false;
}
}
// This is called when the client is initialized.