- scheduler: fix a bug in assigning deadlines to resent jobs.

From Kevin.
    NOTE: Kevin also reported a bug that resulted in
    way too large (e.g. year) deadlines.


svn path=/trunk/boinc/; revision=25458
This commit is contained in:
David Anderson 2012-03-19 22:46:00 +00:00
parent 9a77dcc71f
commit d677f2c1cd
2 changed files with 11 additions and 0 deletions

View File

@ -2799,3 +2799,12 @@ David 19 Mar 2011
lib/
procinfo.cpp
David 19 Mar 2011
- scheduler: fix a bug in assigning deadlines to resent jobs.
From Kevin.
NOTE: Kevin also reported a bug that resulted in
way too large (e.g. year) deadlines.
sched/
sched_send.cpp

View File

@ -591,6 +591,7 @@ static void get_delay_bound_range(
// if original deadline has passed, return zeros
// This will skip deadline check.
opt = pess = 0;
return;
}
opt = res_report_deadline - now;
pess = wu.delay_bound;
@ -604,6 +605,7 @@ static void get_delay_bound_range(
) {
opt = wu.delay_bound*config.reliable_reduced_delay_bound;
double est_wallclock_duration = estimate_duration(wu, bav);
// Check to see how reasonable this reduced time is.
// Increase it to twice the estimated delay bound
// if all the following apply: