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
This commit is contained in:
Bruce Allen 2005-02-21 22:48:53 +00:00
parent bca7853358
commit f27abb4ea9
1 changed files with 1 additions and 1 deletions

View File

@ -630,7 +630,7 @@ static int send_new_file_work_deterministic_seeded(
retval = send_results_for_file( retval = send_results_for_file(
filename, nsent, sreq, reply, platform, ss, false 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 // construct a name which is lexically greater than the name of any result
// which uses this file. // which uses this file.
sprintf(min_resultname, "%s__~", filename); sprintf(min_resultname, "%s__~", filename);