*** empty log message ***

svn path=/trunk/boinc/; revision=6099
This commit is contained in:
Rom Walton 2005-05-10 22:24:56 +00:00
parent 1d375dc068
commit 6bb4f0692b
1 changed files with 8 additions and 8 deletions

View File

@ -921,16 +921,16 @@ bool CLIENT_STATE::should_get_work() {
// return true if we don't have enough runnable tasks to keep all CPUs busy // return true if we don't have enough runnable tasks to keep all CPUs busy
// //
bool CLIENT_STATE::no_work_for_a_cpu() { bool CLIENT_STATE::no_work_for_a_cpu() {
unsigned int i = 0;
int count = 0; int count = 0;
for (unsigned int i = 0; i < results.size(); i++){ for (i = 0; i < results.size(); i++){
RESULT* rp = results[i]; RESULT* rp = results[i];
if (!rp->project->non_cpu_intensive && if (rp->project->non_cpu_intensive ) continue;
!rp->project->suspended_via_gui && if (RESULT_COMPUTE_ERROR <= rp->state) continue;
(RESULT_COMPUTE_ERROR > rp->state) && if (rp->suspended_via_gui) continue;
!rp->suspended_via_gui if (rp->project->suspended_via_gui) continue;
) {
count++; count++;
}
} }
return ncpus > count; return ncpus > count;
} }