From 6ba988fcfd30c8d889f405784858ac7e1faf605b Mon Sep 17 00:00:00 2001 From: Daniel Hsu Date: Thu, 1 Jul 2004 22:21:33 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=3741 --- checkin_notes | 3 ++- client/cs_apps.C | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index ffa2db7e9b..48936a3e2f 100755 --- a/checkin_notes +++ b/checkin_notes @@ -14424,7 +14424,8 @@ 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. + Also, don't try to schedule CPUs if there are no projects or + no results. client/ cs_apps.C diff --git a/client/cs_apps.C b/client/cs_apps.C index 940e0ca63e..9dfc139fbb 100644 --- a/client/cs_apps.C +++ b/client/cs_apps.C @@ -345,6 +345,7 @@ bool CLIENT_STATE::schedule_cpus(bool must_reschedule) { && !have_free_cpu() && !must_reschedule) || projects.size() < 1 + || results.size() < 1 ) { return false; }