From b2ec895c7a61344cff253a7f1255b81065e1fae5 Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Sat, 19 Mar 2005 18:40:11 +0000 Subject: [PATCH] In reviewing CVS diffs, I see that I stepped on a change. This fixes it. svn path=/trunk/boinc/; revision=5690 --- sched/sched_send.C | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sched/sched_send.C b/sched/sched_send.C index b76276d579..44552799c0 100644 --- a/sched/sched_send.C +++ b/sched/sched_send.C @@ -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;