From f27abb4ea964b38c7192e052536bf3858abce39b Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Mon, 21 Feb 2005 22:48:53 +0000 Subject: [PATCH] Break out of deterministic search if no work needed because we have (for example) violated cpu, disk or mem limits. svn path=/trunk/boinc/; revision=5488 --- sched/sched_locality.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sched/sched_locality.C b/sched/sched_locality.C index e089708507..3b83e65d13 100644 --- a/sched/sched_locality.C +++ b/sched/sched_locality.C @@ -630,7 +630,7 @@ static int send_new_file_work_deterministic_seeded( retval = send_results_for_file( filename, nsent, sreq, reply, platform, ss, false ); - if (nsent>0) break; + if (nsent>0 || !reply.work_needed(true)) break; // construct a name which is lexically greater than the name of any result // which uses this file. sprintf(min_resultname, "%s__~", filename);