From 61efb5a0273b8dccfbc580dedb9485c8ddfa5a45 Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Tue, 10 May 2005 19:23:40 +0000 Subject: [PATCH] Added comment and some E@H specific stuff. svn path=/trunk/boinc/; revision=6097 --- sched/sched_send.C | 3 +++ sched/transitioner.C | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/sched/sched_send.C b/sched/sched_send.C index 6e40a823b2..7325262ea9 100644 --- a/sched/sched_send.C +++ b/sched/sched_send.C @@ -542,6 +542,9 @@ bool SCHEDULER_REPLY::work_needed(bool locality_sched) { } if (wreq.nresults >= config.max_wus_to_send) return false; + // config.daily_result_quota is PER CPU (up to max of four CPUs) + // host.max_results_day is between 1 and config.daily_result_quota inclusive + // wreq.daily_result_quota is between ncpus and ncpus*host.max_results_day inclusive 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; diff --git a/sched/transitioner.C b/sched/transitioner.C index 1635251e39..e3cfb89e2f 100644 --- a/sched/transitioner.C +++ b/sched/transitioner.C @@ -46,7 +46,11 @@ using namespace std; #define PIDFILE "transitioner.pid" #define SELECT_LIMIT 1000 +#ifdef EINSTEIN_AT_HOME +#define SLEEP_INTERVAL 1 +#else #define SLEEP_INTERVAL 5 +#endif #define BATCH_INSERT 1 int startup_time;