Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
batmen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sepia-pub
mael
batmen
Merge requests
!11
Change: submission dates are now managed as long on the users' side
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Change: submission dates are now managed as long on the users' side
issue12
into
master
Overview
0
Commits
4
Pipelines
1
Changes
1
Merged
Ghost User
requested to merge
issue12
into
master
2 years ago
Overview
0
Commits
4
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Viewing commit
293addce
Prev
Next
Show latest version
1 file
+
3
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
293addce
fix: bad stop condition in while
· 293addce
Maël Madon
authored
2 years ago
src/users/user_replay.cpp
+
3
−
3
Options
@@ -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
Loading