Skip to content

Commit

Permalink
- admin web: when resetting app statistics,
Browse files Browse the repository at this point in the history
    clear elapsed time stats as well as PFC stats


svn path=/trunk/boinc/; revision=25530
  • Loading branch information
davidpanderson committed Apr 5, 2012
1 parent a9c6d23 commit 86f50ba
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
11 changes: 11 additions & 0 deletions checkin_notes
Original file line number Diff line number Diff line change
Expand Up @@ -3198,3 +3198,14 @@ David 2 Apr 2012

lib/
coproc.cpp

David 5 Apr 2012
- admin web: when resetting app statistics,
clear elapsed time stats as well as PFC stats

db/
boinc_db.h
sched/
sched_version.cpp
html/ops/
app_reset.php
1 change: 1 addition & 0 deletions db/boinc_db.h
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,7 @@ struct HOST_APP_VERSION {
int n_jobs_today;
AVERAGE_VAR turnaround;
// the stats of turnaround time (received - sent)
// (NOT normalized by wu.rsc_fpops_est)
int consecutive_valid;
// number of consecutive validated relicated results.
// reset to zero on timeouts, errors, invalid
Expand Down
2 changes: 1 addition & 1 deletion html/ops/app_reset.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
function reset_app($app) {
$avs = BoincAppVersion::enum("appid=$app->id");
foreach ($avs as $av) {
$av->update("pfc_n=0, pfc_avg=0, pfc_scale=0, expavg_credit=0, expavg_time=0");
$av->update("pfc_n=0, pfc_avg=0, pfc_scale=0, et_n=0, et_avg=0, et_var=0, et_q=0, expavg_credit=0, expavg_time=0");
BoincHostAppVersion::update_aux("pfc_n=0, pfc_avg=0 where app_version_id=$av->id");
}
$app->update("min_avg_pfc = 0");
Expand Down
2 changes: 1 addition & 1 deletion sched/sched_version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ CLIENT_APP_VERSION* get_app_version_anonymous(

#define ET_RATIO_LIMIT 10.
// if the FLOPS estimate based on elapsed time
// exceeds project_flops by more than this factor, cap it.
// exceeds projected_flops by more than this factor, cap it.
// The host may have received a bunch of short jobs recently

// input:
Expand Down

0 comments on commit 86f50ba

Please sign in to comment.