mirror of https://github.com/BOINC/boinc.git
- 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:
parent
c5ac569868
commit
6d8bdd777b
|
@ -1756,3 +1756,10 @@ David 15 Feb 2012
|
||||||
vda_lib.h
|
vda_lib.h
|
||||||
client/
|
client/
|
||||||
hostinfo_network.cpp
|
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
|
||||||
|
|
|
@ -225,6 +225,13 @@ PROJECT* RSC_WORK_FETCH::choose_project_hyst() {
|
||||||
if (!p->pwf.can_fetch_work) continue;
|
if (!p->pwf.can_fetch_work) continue;
|
||||||
if (!project_state(p).may_have_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,
|
// if project has excluded GPUs of this type,
|
||||||
// and it has runnable jobs for this type,
|
// and it has runnable jobs for this type,
|
||||||
// don't fetch work for it.
|
// don't fetch work for it.
|
||||||
|
|
Loading…
Reference in New Issue