- client: fix bug in FIFO selection of coproc jobs

(senility setting in?)

svn path=/trunk/boinc/; revision=19049
This commit is contained in:
David Anderson 2009-09-12 18:01:47 +00:00
parent 0eeb16abaf
commit 9171ddbfad
2 changed files with 13 additions and 6 deletions

View File

@ -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

View File

@ -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;