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

fix: bad stop condition in while

parent 4b0b9e5c
No related branches found
No related tags found
1 merge request!11Change: submission dates are now managed as long on the users' side
This commit is part of merge request !11. Comments created here will be created in the context of that merge request.
......@@ -45,14 +45,14 @@ void ReplayUser::jobs_to_submit(double date, std::list<shared_ptr<Job>> &jobs,
"User %s has been called to sumbit but her job queue is empty",
user_name.c_str());
PPK_ASSERT_ERROR(
lround(original_trace->first_job()->submission_time) != lround(date),
"First job in user %s's queue has greater sumbmission time (%f) than "
lround(original_trace->first_job()->submission_time) == lround(date),
"First job in user %s's queue has different sumbmission time (%f) than "
"current date (%f)",
user_name.c_str(), original_trace->first_job()->submission_time, date);
/* Submit all jobs that have same submit time */
while (!original_trace->is_empty()
&& lround(original_trace->first_job()->submission_time) != lround(date))
&& lround(original_trace->first_job()->submission_time) == lround(date))
{
/* Cast const Job * into Job * */
shared_ptr<Job> job
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment