mirror of https://github.com/BOINC/boinc.git
- scheduler: fix infinite loop in matchmaker sched (from Artyom Sharov)
svn path=/trunk/boinc/; revision=15603
This commit is contained in:
parent
1147e60b1a
commit
2a5a53c484
|
@ -5727,3 +5727,9 @@ David 14 July 2008
|
|||
account_finish.php
|
||||
sched/
|
||||
sched_send.C
|
||||
|
||||
David 14 July 2008
|
||||
- scheduler: fix infinite loop in matchmaker sched (from Artyom Sharov)
|
||||
|
||||
sched/
|
||||
sched_send.C
|
||||
|
|
|
@ -1612,6 +1612,8 @@ void JOB_SET::add_job(JOB& job) {
|
|||
est_time -= worst_job.est_time;
|
||||
disk_usage -= worst_job.disk_usage;
|
||||
jobs.pop_back();
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
while (!jobs.empty()) {
|
||||
|
@ -1620,6 +1622,8 @@ void JOB_SET::add_job(JOB& job) {
|
|||
est_time -= worst_job.est_time;
|
||||
disk_usage -= worst_job.disk_usage;
|
||||
jobs.pop_back();
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
list<JOB>::iterator i = jobs.begin();
|
||||
|
|
Loading…
Reference in New Issue