- client: fix scheduling bug when a job has fraction_done = 1

but it's not finished yet.
    ACTIVE_TASK::est_dur() was returning 0
    when it should have returned elapsed_time.

svn path=/trunk/boinc/; revision=22834
This commit is contained in:
David Anderson 2010-12-08 16:59:42 +00:00
parent 0ea0fd6037
commit 50c5ce8e81
2 changed files with 10 additions and 1 deletions

View File

@ -8667,3 +8667,12 @@ Rom 8 Dec 2010
vm.cpp, .h
win_build/
vboxwrapper.vcproj
David 7 Dec 2010
- client: fix scheduling bug when a job has fraction_done = 1
but it's not finished yet.
ACTIVE_TASK::est_dur() was returning 0
when it should have returned elapsed_time.
client/
work_fetch.cpp

View File

@ -1375,7 +1375,7 @@ double RESULT::estimated_time_remaining() {
// 2) the current elapsed time and fraction done (dynamic estimate)
//
double ACTIVE_TASK::est_dur() {
if (fraction_done >= 1) return 0;
if (fraction_done >= 1) return elapsed_time;
double wu_est = result->estimated_duration();
if (fraction_done <= 0) return wu_est;
if (wu_est < elapsed_time) wu_est = elapsed_time;