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); }