*** empty log message ***

svn path=/trunk/boinc/; revision=3740
This commit is contained in:
Daniel Hsu 2004-07-01 22:14:48 +00:00
parent b7a4733a18
commit 616ffa41ab
2 changed files with 5 additions and 3 deletions

View File

@ -14424,6 +14424,7 @@ Rom 1 July 2004
Daniel 2004-07-01
- client: scheduler now only calls set_client_state_dirty if some
task was started or stopped (i.e. set of running tasks changed).
Also, don't try to schedule CPUs if there are no projects.
client/
cs_apps.C

View File

@ -341,9 +341,10 @@ bool CLIENT_STATE::schedule_cpus(bool must_reschedule) {
unsigned int i;
elapsed_time = time(NULL) - cpu_sched_last_time;
if (elapsed_time < cpu_sched_period
&& !have_free_cpu()
&& !must_reschedule
if ((elapsed_time < cpu_sched_period
&& !have_free_cpu()
&& !must_reschedule)
|| projects.size() < 1
) {
return false;
}