- client: debt_eligible() was returning false if the backoff was max.

This can lead to a situation where a project never gets work.
    Remove that clause.

svn path=/trunk/boinc/; revision=17226
This commit is contained in:
David Anderson 2009-02-12 16:28:28 +00:00
parent 7d1edca650
commit 57bf393544
2 changed files with 8 additions and 1 deletions

View File

@ -1513,3 +1513,11 @@ Charlie 12 Feb 2009
clientscr/ clientscr/
screensaver.cpp screensaver.cpp
David 12 Feb 2009
- client: debt_eligible() was returning false if the backoff was max.
This can lead to a situation where a project never gets work.
Remove that clause.
client/
work_fetch.cpp

View File

@ -514,7 +514,6 @@ bool RSC_PROJECT_WORK_FETCH::debt_eligible(PROJECT* p) {
if (p->dont_request_more_work) return false; if (p->dont_request_more_work) return false;
if (has_runnable_jobs) return true; if (has_runnable_jobs) return true;
if (backoff_time > gstate.now) return false; if (backoff_time > gstate.now) return false;
if (backoff_interval == MAX_BACKOFF_INTERVAL) return false;
if (p->min_rpc_time > gstate.now) return false; if (p->min_rpc_time > gstate.now) return false;
return true; return true;
} }