- client: work fetch: skip project if zero CPU shortfall

and currently have coproc jobs.

svn path=/trunk/boinc/; revision=16746
This commit is contained in:
David Anderson 2008-12-27 03:43:13 +00:00
parent b9d70d1681
commit b24d947aaa
2 changed files with 16 additions and 1 deletions

View File

@ -10385,3 +10385,10 @@ David 26 Dec 2008
autolock.php
user/
white.css
David 26 Dec 2008
- client: work fetch: skip project if zero CPU shortfall
and currently have coproc jobs.
client/
work_fetch.cpp

View File

@ -477,7 +477,15 @@ bool CLIENT_STATE::compute_work_requests() {
// see if this project can be ruled out completely
//
if (p->non_cpu_intensive) continue;
if (!p->rr_sim_status.cpu_shortfall) continue;
if (!p->rr_sim_status.cpu_shortfall && p->rr_sim_status.has_coproc_jobs) {
if (log_flags.work_fetch_debug) {
msg_printf(p, MSG_INFO,
"[work_fetch_debug] 0 shortfall and have coproc jobs; skipping"
);
}
continue;
}
if (!p->contactable()) {
if (log_flags.work_fetch_debug) {
msg_printf(p, MSG_INFO, "[work_fetch_debug] work fetch: project not contactable; skipping");