*** empty log message ***

svn path=/trunk/boinc/; revision=10442
This commit is contained in:
David Anderson 2006-06-21 19:48:41 +00:00
parent 03dafabae1
commit 9edde1793f
3 changed files with 18 additions and 13 deletions

View File

@ -6508,9 +6508,10 @@ David 21 June 2006
sched/ sched/
file_upload_handler.C file_upload_handler.C
Rom 21 June 2006 Rom 21 June 2006
- Bug Fix: Two setup failure logs that were sent to me indicate that - Bug Fix: Two setup failure logs that were sent to me indicate that
the uninstall process didnt clean up the BOINC entry in the the uninstall process didn't clean up the BOINC entry in the
service control manager. Check, before attempting to shutdown, service control manager. Check, before attempting to shutdown,
BOINC to make sure it is executing or is capable of responding BOINC to make sure it is executing or is capable of responding
to a ControlService event. to a ControlService event.
@ -6518,3 +6519,11 @@ Rom 21 June 2006
win_build/installerv2/redist/Windows/src/boinccas win_build/installerv2/redist/Windows/src/boinccas
CAShutdownBOINC.cpp CAShutdownBOINC.cpp
boinccas.rc boinccas.rc
David 21 June 2006
- update_stats: enumerate only users/hosts/teams for which
expavg_credit > 0.1.
This speeds up the DB query
sched/
update_stats.C

View File

@ -50,9 +50,6 @@ list_item_func("<sched_ops>",
list_item_func("<state_debug>", list_item_func("<state_debug>",
" Log changes to the 'client state' data structures. " " Log changes to the 'client state' data structures. "
); );
list_item_func("<cpu_sched_detail>",
" Log debugging information about CPU scheduling. "
);
list_item_func("<task_debug>", list_item_func("<task_debug>",
" Log debugging information about task execution. " " Log debugging information about task execution. "
); );
@ -83,7 +80,7 @@ list_item_func("<poll_debug>",
list_item_func("<guirpc_debug>", list_item_func("<guirpc_debug>",
" Log debugging information about the GUI RPC interface. " " Log debugging information about the GUI RPC interface. "
); );
list_item_func("<sched_cpu_debug>", list_item_func("<cpu_sched_debug>",
" Log debugging information about the CPU scheduler. " " Log debugging information about the CPU scheduler. "
); );
list_item_func("<scrsave_debug>", list_item_func("<scrsave_debug>",

View File

@ -52,11 +52,10 @@ int update_users() {
int retval; int retval;
char buf[256]; char buf[256];
while (!user.enumerate()) { while (!user.enumerate("where expavg_credit>0.1")) {
if (user.expavg_time > update_time_cutoff || user.expavg_credit==0.0) continue; if (user.expavg_time > update_time_cutoff) continue;
update_average(0, 0, CREDIT_HALF_LIFE, user.expavg_credit, user.expavg_time); update_average(0, 0, CREDIT_HALF_LIFE, user.expavg_credit, user.expavg_time);
sprintf( sprintf( buf, "expavg_credit=%f, expavg_time=%f",
buf,"expavg_credit=%f, expavg_time=%f",
user.expavg_credit, user.expavg_time user.expavg_credit, user.expavg_time
); );
retval = user.update_field(buf); retval = user.update_field(buf);
@ -74,8 +73,8 @@ int update_hosts() {
int retval; int retval;
char buf[256]; char buf[256];
while (!host.enumerate()) { while (!host.enumerate("where expavg_credit>0.1")) {
if (host.expavg_time > update_time_cutoff || host.expavg_credit==0.0) continue; if (host.expavg_time > update_time_cutoff) continue;
update_average(0, 0, CREDIT_HALF_LIFE, host.expavg_credit, host.expavg_time); update_average(0, 0, CREDIT_HALF_LIFE, host.expavg_credit, host.expavg_time);
sprintf( sprintf(
buf,"expavg_credit=%f, expavg_time=%f", buf,"expavg_credit=%f, expavg_time=%f",
@ -124,7 +123,7 @@ int update_teams() {
int retval; int retval;
char buf[256]; char buf[256];
while (!team.enumerate()) { while (!team.enumerate("where expavg_credit>0.1")) {
retval = get_team_totals(team); retval = get_team_totals(team);
if (retval) { if (retval) {
log_messages.printf( log_messages.printf(
@ -135,7 +134,7 @@ int update_teams() {
); );
continue; continue;
} }
if (team.expavg_time < update_time_cutoff && team.expavg_credit!=0.0) { if (team.expavg_time < update_time_cutoff) {
update_average(0, 0, CREDIT_HALF_LIFE, team.expavg_credit, team.expavg_time); update_average(0, 0, CREDIT_HALF_LIFE, team.expavg_credit, team.expavg_time);
} }
sprintf( sprintf(