- admin web: when resetting app statistics,

clear elapsed time stats as well as PFC stats


svn path=/trunk/boinc/; revision=25530
This commit is contained in:
David Anderson 2012-04-05 11:01:38 +00:00
parent a9c6d23e76
commit 86f50ba080
4 changed files with 14 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -34,7 +34,7 @@ if (!file_exists("../../stop_daemons")) {
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");

View File

@ -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: