mirror of https://github.com/BOINC/boinc.git
- client: fix bug in work fetch that prevented resource backoff
This commit is contained in:
parent
330a25893f
commit
fde9ab70a1
|
@ -475,7 +475,7 @@ bool CLIENT_STATE::simulate_rpc(PROJECT* p) {
|
||||||
rsc_work_fetch[0].req_secs = save_cpu_req_secs;
|
rsc_work_fetch[0].req_secs = save_cpu_req_secs;
|
||||||
work_fetch.handle_reply(p, &sr, new_results);
|
work_fetch.handle_reply(p, &sr, new_results);
|
||||||
p->nrpc_failures = 0;
|
p->nrpc_failures = 0;
|
||||||
p->sched_rpc_pending = false;
|
p->sched_rpc_pending = 0;
|
||||||
p->min_rpc_time = now + 900;
|
p->min_rpc_time = now + 900;
|
||||||
if (sent_something) {
|
if (sent_something) {
|
||||||
request_schedule_cpus("simulate_rpc");
|
request_schedule_cpus("simulate_rpc");
|
||||||
|
|
|
@ -749,8 +749,10 @@ PROJECT* WORK_FETCH::choose_project() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (p) {
|
||||||
|
p->sched_rpc_pending = RPC_REASON_NEED_WORK;
|
||||||
|
} else {
|
||||||
if (log_flags.work_fetch_debug) {
|
if (log_flags.work_fetch_debug) {
|
||||||
if (!p) {
|
|
||||||
msg_printf(0, MSG_INFO, "[work_fetch] No project chosen for work fetch");
|
msg_printf(0, MSG_INFO, "[work_fetch] No project chosen for work fetch");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue