mirror of https://github.com/BOINC/boinc.git
Added comment and some E@H specific stuff.
svn path=/trunk/boinc/; revision=6097
This commit is contained in:
parent
fd6e0c08da
commit
61efb5a027
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue