From 9171ddbfad0c93a69b9adfbfbf62046f4f561891 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 12 Sep 2009 18:01:47 +0000 Subject: [PATCH] - client: fix bug in FIFO selection of coproc jobs (senility setting in?) svn path=/trunk/boinc/; revision=19049 --- checkin_notes | 7 +++++++ client/cpu_sched.cpp | 12 ++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/checkin_notes b/checkin_notes index cac89f1d17..9693165405 100644 --- a/checkin_notes +++ b/checkin_notes @@ -7646,3 +7646,10 @@ Charlie 11 Sept 2009 clientgui/ AsyncRPC.cpp BOINCGUIApp.cpp + +David 12 Sept 2009 + - client: fix bug in FIFO selection of coproc jobs + (senility setting in?) + + client/ + cpu_sched.cpp diff --git a/client/cpu_sched.cpp b/client/cpu_sched.cpp index 22109a10c4..2972aeba71 100644 --- a/client/cpu_sched.cpp +++ b/client/cpu_sched.cpp @@ -323,12 +323,12 @@ RESULT* first_coproc_result() { } if (rp->received_time < best->received_time) { best = rp; - continue; - } - // make it deterministic - // - if (strcmp(rp->name, best->name)) { - best = rp; + } else if (rp->received_time == best->received_time) { + // make it deterministic + // + if (strcmp(rp->name, best->name)) { + best = rp; + } } } return best;