*** empty log message ***

svn path=/trunk/boinc/; revision=2280
This commit is contained in:
Karl Chen 2003-09-06 01:46:08 +00:00
parent 488d2b617e
commit 2b69fa01d3
2 changed files with 13 additions and 4 deletions

View File

@ -6199,3 +6199,10 @@ Karl 2003/09/05
api/ api/
boinc_api.C boinc_api.C
guitl.C guitl.C
Karl 2003/09/05
- created COBBLESTONE_FACTOR variable and changed it from 1/3 to 100.
- fixed superfluous authenticator in cgi.log
Sched/
handle_request.C

View File

@ -44,6 +44,8 @@ const int MIN_SECONDS_TO_SEND = 0;
const int MAX_SECONDS_TO_SEND = (28*SECONDS_PER_DAY); const int MAX_SECONDS_TO_SEND = (28*SECONDS_PER_DAY);
const int MAX_WUS_TO_SEND = 10; const int MAX_WUS_TO_SEND = 10;
const double COBBLESTONE_FACTOR = 100.0;
// if a host has active_frac < 0.5, assume 0.5 so we don't deprive it of work. // if a host has active_frac < 0.5, assume 0.5 so we don't deprive it of work.
const double HOST_ACTIVE_FRAC_MIN = 0.5; const double HOST_ACTIVE_FRAC_MIN = 0.5;
@ -400,8 +402,8 @@ new_host:
// //
static void compute_credit_rating(HOST& host) { static void compute_credit_rating(HOST& host) {
host.credit_per_cpu_sec = host.credit_per_cpu_sec =
(fabs(host.p_fpops)/1e9 + fabs(host.p_iops)/1e9 + fabs(host.p_membw)/4e9)/ (fabs(host.p_fpops)/1e9 + fabs(host.p_iops)/1e9 + fabs(host.p_membw)/4e9)
(3*SECONDS_PER_DAY); * COBBLESTONE_FACTOR / (SECONDS_PER_DAY);
} }
// Update host record based on request. // Update host record based on request.
@ -822,9 +824,9 @@ bool wrong_major_version(SCHEDULER_REQUEST& sreq, SCHEDULER_REPLY& reply) {
strcpy(reply.message_priority, "low"); strcpy(reply.message_priority, "low");
log_messages.printf( log_messages.printf(
SchedMessages::NORMAL, SchedMessages::NORMAL,
"[HOST#%d] Wrong major version '%s' from user: wanted %d, got %d\n", "[HOST#%d] Wrong major version from user: wanted %d, got %d\n",
reply.host.id, reply.host.id,
sreq.authenticator, MAJOR_VERSION, sreq.core_client_major_version MAJOR_VERSION, sreq.core_client_major_version
); );
return true; return true;
} }