mirror of https://github.com/BOINC/boinc.git
- client: tweak to the above: never ask for work if buffer > max.
This is needed to prevent projects that use next_rpc_delay from queuing unbounded work. svn path=/trunk/boinc/; revision=26003
This commit is contained in:
parent
ff1a391ced
commit
9fa75d5044
|
@ -5401,3 +5401,11 @@ David 10 Aug 2012
|
|||
|
||||
client/
|
||||
work_fetch.cpp,h
|
||||
|
||||
David 10 Aug 2012
|
||||
- client: tweak to the above: never ask for work if buffer > max.
|
||||
This is needed to prevent projects that use next_rpc_delay
|
||||
from queuing unbounded work.
|
||||
|
||||
client/
|
||||
work_fetch.cpp
|
||||
|
|
|
@ -232,6 +232,8 @@ PROJECT* RSC_WORK_FETCH::choose_project_hyst(bool strict) {
|
|||
PROJECT* pbest = NULL;
|
||||
if (strict) {
|
||||
if (saturated_time > gstate.work_buf_min()) return NULL;
|
||||
} else {
|
||||
if (saturated_time > gstate.work_buf_total()) return NULL;
|
||||
}
|
||||
if (saturated_time > gstate.work_buf_total()) return NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue