- client: fix bug in work fetch that prevented resource backoff

This commit is contained in:
David Anderson 2013-04-04 16:20:29 -07:00
parent 330a25893f
commit fde9ab70a1
2 changed files with 5 additions and 3 deletions

View File

@ -475,7 +475,7 @@ bool CLIENT_STATE::simulate_rpc(PROJECT* p) {
rsc_work_fetch[0].req_secs = save_cpu_req_secs;
work_fetch.handle_reply(p, &sr, new_results);
p->nrpc_failures = 0;
p->sched_rpc_pending = false;
p->sched_rpc_pending = 0;
p->min_rpc_time = now + 900;
if (sent_something) {
request_schedule_cpus("simulate_rpc");

View File

@ -749,8 +749,10 @@ PROJECT* WORK_FETCH::choose_project() {
}
}
if (log_flags.work_fetch_debug) {
if (!p) {
if (p) {
p->sched_rpc_pending = RPC_REASON_NEED_WORK;
} else {
if (log_flags.work_fetch_debug) {
msg_printf(0, MSG_INFO, "[work_fetch] No project chosen for work fetch");
}
}