From b24d947aaac703686132a19847dd44a6854a0dfd Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 27 Dec 2008 03:43:13 +0000 Subject: [PATCH] - client: work fetch: skip project if zero CPU shortfall and currently have coproc jobs. svn path=/trunk/boinc/; revision=16746 --- checkin_notes | 7 +++++++ client/work_fetch.cpp | 10 +++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 427885681c..7faf184d25 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/client/work_fetch.cpp b/client/work_fetch.cpp index 084f3dfd86..b3fb1754d4 100644 --- a/client/work_fetch.cpp +++ b/client/work_fetch.cpp @@ -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");