From 62ac6358e6ef3f2ecb1150eabcd6928e64ea220a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 28 Mar 2009 04:20:44 +0000 Subject: [PATCH] - client: typo in work fetch code; may cause minor errors svn path=/trunk/boinc/; revision=17691 --- checkin_notes | 6 ++++++ client/work_fetch.cpp | 4 +--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/checkin_notes b/checkin_notes index c7eef66895..9b1ab48123 100644 --- a/checkin_notes +++ b/checkin_notes @@ -3455,3 +3455,9 @@ David 27 Mar 2009 clientgui/ ProjectInfoPage.cpp + +David 27 Mar 2009 + - client: typo in work fetch code; may cause minor errors + + client/ + work_fetch.cpp diff --git a/client/work_fetch.cpp b/client/work_fetch.cpp index cbedd0b8b6..4e107f6cfd 100644 --- a/client/work_fetch.cpp +++ b/client/work_fetch.cpp @@ -427,20 +427,18 @@ PROJECT* WORK_FETCH::choose_project() { if (!p) { p = cpu_work_fetch.choose_project(FETCH_IF_IDLE_INSTANCE); } - if (coproc_cuda) { + if (!p && coproc_cuda) { p = cuda_work_fetch.choose_project(FETCH_IF_MAJOR_SHORTFALL); } if (!p) { p = cpu_work_fetch.choose_project(FETCH_IF_MAJOR_SHORTFALL); } - if (!p && coproc_cuda) { p = cuda_work_fetch.choose_project(FETCH_IF_MINOR_SHORTFALL); } if (!p) { p = cpu_work_fetch.choose_project(FETCH_IF_MINOR_SHORTFALL); } - if (!p && coproc_cuda) { p = cuda_work_fetch.choose_project(FETCH_IF_PROJECT_STARVED); }