From 9edde1793fc36ec63973aac8c88d274caf8706d2 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 21 Jun 2006 19:48:41 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=10442 --- checkin_notes | 11 ++++++++++- doc/client_msgs.php | 5 +---- sched/update_stats.C | 15 +++++++-------- 3 files changed, 18 insertions(+), 13 deletions(-) diff --git a/checkin_notes b/checkin_notes index 2c68c4decc..eb50d0e1df 100755 --- a/checkin_notes +++ b/checkin_notes @@ -6508,9 +6508,10 @@ David 21 June 2006 sched/ file_upload_handler.C + Rom 21 June 2006 - Bug Fix: Two setup failure logs that were sent to me indicate that - the uninstall process didn’t 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, BOINC to make sure it is executing or is capable of responding to a ControlService event. @@ -6518,3 +6519,11 @@ Rom 21 June 2006 win_build/installerv2/redist/Windows/src/boinccas CAShutdownBOINC.cpp 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 diff --git a/doc/client_msgs.php b/doc/client_msgs.php index 784b705cd0..43a938fbe2 100644 --- a/doc/client_msgs.php +++ b/doc/client_msgs.php @@ -50,9 +50,6 @@ list_item_func("", list_item_func("", " Log changes to the 'client state' data structures. " ); -list_item_func("", - " Log debugging information about CPU scheduling. " -); list_item_func("", " Log debugging information about task execution. " ); @@ -83,7 +80,7 @@ list_item_func("", list_item_func("", " Log debugging information about the GUI RPC interface. " ); -list_item_func("", +list_item_func("", " Log debugging information about the CPU scheduler. " ); list_item_func("", diff --git a/sched/update_stats.C b/sched/update_stats.C index 139d5820ee..4fc9ed7c9a 100644 --- a/sched/update_stats.C +++ b/sched/update_stats.C @@ -52,11 +52,10 @@ int update_users() { int retval; char buf[256]; - while (!user.enumerate()) { - if (user.expavg_time > update_time_cutoff || user.expavg_credit==0.0) continue; + while (!user.enumerate("where expavg_credit>0.1")) { + if (user.expavg_time > update_time_cutoff) continue; update_average(0, 0, CREDIT_HALF_LIFE, user.expavg_credit, user.expavg_time); - sprintf( - buf,"expavg_credit=%f, expavg_time=%f", + sprintf( buf, "expavg_credit=%f, expavg_time=%f", user.expavg_credit, user.expavg_time ); retval = user.update_field(buf); @@ -74,8 +73,8 @@ int update_hosts() { int retval; char buf[256]; - while (!host.enumerate()) { - if (host.expavg_time > update_time_cutoff || host.expavg_credit==0.0) continue; + while (!host.enumerate("where expavg_credit>0.1")) { + if (host.expavg_time > update_time_cutoff) continue; update_average(0, 0, CREDIT_HALF_LIFE, host.expavg_credit, host.expavg_time); sprintf( buf,"expavg_credit=%f, expavg_time=%f", @@ -124,7 +123,7 @@ int update_teams() { int retval; char buf[256]; - while (!team.enumerate()) { + while (!team.enumerate("where expavg_credit>0.1")) { retval = get_team_totals(team); if (retval) { log_messages.printf( @@ -135,7 +134,7 @@ int update_teams() { ); 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); } sprintf(