diff --git a/checkin_notes b/checkin_notes index cbb0d68f37..77aa2f309f 100644 --- a/checkin_notes +++ b/checkin_notes @@ -4212,4 +4212,15 @@ Rom 9 Jun 2010 win_build/ - \ No newline at end of file + +David 10 Jun 2010 + - server: change credit constant from 100 to 200. + Data from S@h beta (running for a month or so) + suggests that this will almost exactly match the + average credit granted by S@h's old system + (which, in theory, is the reference for other projects) + + sched/ + credit.h + html/inc/ + result.inc diff --git a/html/inc/result.inc b/html/inc/result.inc index 422ab9c7aa..a0c074a197 100644 --- a/html/inc/result.inc +++ b/html/inc/result.inc @@ -30,7 +30,7 @@ function app_version_string($id) { $av = $app_versions[$id]; $app = $apps[$av->appid]; } else { - $av = BoincAppVersion::lookup("id=$id"); + $av = BoincAppVersion::lookup_id($id); if (!$av) { return tra("Not in DB"); } @@ -391,7 +391,7 @@ function show_result($result) { row2(tra("Validate state"), validate_state_str($result)); row2(tra("Claimed credit"), number_format($result->claimed_credit, 2)); row2(tra("Granted credit"), number_format($result->granted_credit, 2)); - row2(tra("application version"), app_version_string($result->app_version_id)); + row2(tra("Application version"), app_version_string($result->app_version_id)); end_table(); echo "

Stderr output

".htmlspecialchars($result->stderr_out)."
"; } diff --git a/sched/credit.h b/sched/credit.h index 74bebdbd41..ddf6fc8b2e 100644 --- a/sched/credit.h +++ b/sched/credit.h @@ -30,7 +30,7 @@ // use host scaling only if have this many samples for host #define MIN_VERSION_SAMPLES 100 // update a version's scale only if it has this many samples -#define COBBLESTONE_SCALE 100/86400e9 +#define COBBLESTONE_SCALE 200/86400e9 // multiply normalized PFC by this to get Cobblestones // parameters for maintaining averages.