In reviewing CVS diffs, I see that I stepped on a change. This fixes it.

svn path=/trunk/boinc/; revision=5690
This commit is contained in:
Bruce Allen 2005-03-19 18:40:11 +00:00
parent c354b25eb5
commit b2ec895c7a
1 changed files with 3 additions and 0 deletions

View File

@ -540,6 +540,9 @@ bool SCHEDULER_REPLY::work_needed(bool locality_sched) {
if (wreq.nresults >= config.max_wus_to_send) return false;
if (config.daily_result_quota) {
if (host.max_results_day <= 0 || host.max_results_day>config.daily_result_quota) {
host.max_results_day = config.daily_result_quota;
}
// scale daily quota by #CPUs, up to a limit of 4
//
int ncpus = host.p_ncpus;