*** 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
//
bool CLIENT_STATE::no_work_for_a_cpu() {
unsigned int i = 0;
int count = 0;
for (unsigned int i = 0; i < results.size(); i++){
for (i = 0; i < results.size(); i++){
RESULT* rp = results[i];
if (!rp->project->non_cpu_intensive &&
!rp->project->suspended_via_gui &&
(RESULT_COMPUTE_ERROR > rp->state) &&
!rp->suspended_via_gui
) {
count++;
}
if (rp->project->non_cpu_intensive ) continue;
if (RESULT_COMPUTE_ERROR <= rp->state) continue;
if (rp->suspended_via_gui) continue;
if (rp->project->suspended_via_gui) continue;
count++;
}
return ncpus > count;
}