- client: don't accumulate LTD for projects w/ suspended jobs

svn path=/trunk/boinc/; revision=20630
This commit is contained in:
David Anderson 2010-02-18 19:09:46 +00:00
parent df0f02b8e4
commit 6a3a03ee1a
2 changed files with 8 additions and 1 deletions

View File

@ -1256,8 +1256,14 @@ David 17 Feb 2010
html/inc/ html/inc/
prefs.inc prefs.inc
David 18 Feb 2010 David 18 Feb 2010
- assimilator: fix --one_pass bug (from Bernd) - assimilator: fix --one_pass bug (from Bernd)
sched/ sched/
assimilator.cpp assimilator.cpp
David 18 Feb 2010
- client: don't accumulate LTD for projects w/ suspended jobs
client/
work_fetch.cpp

View File

@ -161,6 +161,7 @@ bool RSC_PROJECT_WORK_FETCH::overworked() {
bool RSC_PROJECT_WORK_FETCH::debt_eligible(PROJECT* p, RSC_WORK_FETCH& rwf) { bool RSC_PROJECT_WORK_FETCH::debt_eligible(PROJECT* p, RSC_WORK_FETCH& rwf) {
if (p->non_cpu_intensive) return false; if (p->non_cpu_intensive) return false;
if (p->suspended_via_gui) return false; if (p->suspended_via_gui) return false;
if (p->some_result_suspended()) return false;
if (has_runnable_jobs) return true; if (has_runnable_jobs) return true;
// must precede the done_request_more_work check // must precede the done_request_more_work check
if (p->dont_request_more_work) return false; if (p->dont_request_more_work) return false;