*** empty log message ***

svn path=/trunk/boinc/; revision=12008
This commit is contained in:
David Anderson 2007-01-30 19:48:28 +00:00
parent 8466c5b475
commit bb3933121e
2 changed files with 9 additions and 2 deletions

View File

@ -1404,3 +1404,10 @@ David 30 Jan 2007
clientgui/
ViewProjectsGrid.cpp,h
David 30 Jan 2007
- core client: computation of duration_correction_factor was messed up.
E.g. when the correct value is .5, it converges to sqrt(.5)
client/
client_types.C

View File

@ -1742,7 +1742,7 @@ double RESULT::estimated_cpu_time_remaining() {
// completion time for this project's results
//
void PROJECT::update_duration_correction_factor(RESULT* rp) {
double ratio = rp->final_cpu_time / rp->estimated_cpu_time();
double ratio = rp->final_cpu_time / rp->estimated_cpu_time_uncorrected();
double old_dcf = duration_correction_factor;
// it's OK to overestimate completion time,
@ -1751,7 +1751,7 @@ void PROJECT::update_duration_correction_factor(RESULT* rp) {
// but decrease it with caution
//
if (ratio > 1) {
duration_correction_factor *= ratio;
duration_correction_factor = ratio;
} else {
// in particular, don't give much weight to results
// that completed a lot earlier than expected