Skip to content
Snippets Groups Projects
Commit 38039c65 authored by Maël Madon's avatar Maël Madon
Browse files

fix: bug in easy-bf making the test suite fail

parent 71627bd5
No related branches found
No related tags found
1 merge request!5New dynamic schedulers: fcfs and easy-bf
Pipeline #4610 passed
......@@ -581,7 +581,11 @@ Schedule::TimeSliceConstIterator Schedule::find_first_occurence_of_job(
for (auto slice_it = starting_point; slice_it != _profile.end(); ++slice_it)
{
const TimeSlice &slice = *slice_it;
if (slice.allocated_jobs.count(job) == 1)
if (_debug)
LOG_F(1, "Looking for job %s. TimeSlice allocated jobs: %s", job->id.c_str(), slice.to_string_allocated_jobs().c_str());
auto job_in_slice = slice.allocated_jobs.find(job);
if (job_in_slice != slice.allocated_jobs.end() && job_in_slice->first->id == job->id)
return slice_it;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment