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;