- client: fetch work from backup (zero resource share) projects

only if a device instance is idle


svn path=/trunk/boinc/; revision=25271
This commit is contained in:
David Anderson 2012-02-16 04:54:09 +00:00
parent c5ac569868
commit 6d8bdd777b
2 changed files with 14 additions and 0 deletions

View File

@ -1756,3 +1756,10 @@ David 15 Feb 2012
vda_lib.h
client/
hostinfo_network.cpp
David 15 Feb 2012
- client: fetch work from backup (zero resource share) projects
only if a device instance is idle
client/
work_fetch.cpp

View File

@ -225,6 +225,13 @@ PROJECT* RSC_WORK_FETCH::choose_project_hyst() {
if (!p->pwf.can_fetch_work) continue;
if (!project_state(p).may_have_work) continue;
// if project has zero resource share,
// only fetch work if a device is idle
//
if (p->resource_share == 0 && nidle_now == 0) {
continue;
}
// if project has excluded GPUs of this type,
// and it has runnable jobs for this type,
// don't fetch work for it.