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
!10
Better memory management and float rounding issues
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Better memory management and float rounding issues
issue12
into
master
Overview
0
Commits
6
Pipelines
1
Changes
11
Merged
Ghost User
requested to merge
issue12
into
master
2 years ago
Overview
0
Commits
6
Pipelines
1
Changes
11
Expand
0
0
Merge request reports
Viewing commit
bdd805f9
Prev
Next
Show latest version
11 files
+
43
−
43
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
11
Search (e.g. *.vue) (Ctrl+P)
bdd805f9
dev: change Profile * to const Profile *
· bdd805f9
Maël Madon
authored
2 years ago
src/users/broker.cpp
+
3
−
3
Options
@@ -155,10 +155,10 @@ double Broker::next_submission(double date) const
}
void
Broker
::
jobs_to_submit
(
double
date
,
list
<
Job
*>
&
jobs
,
list
<
Profile
*>
&
profiles
)
double
date
,
list
<
Job
*>
&
jobs
,
list
<
const
Profile
*>
&
profiles
)
{
jobs
=
list
<
Job
*>
();
profiles
=
list
<
Profile
*>
();
profiles
=
list
<
const
Profile
*>
();
User
*
user
=
user_queue
.
front
();
double
planned_date_submission
=
user
->
next_submission
();
@@ -172,7 +172,7 @@ void Broker::jobs_to_submit(
{
user_queue
.
pop_front
();
list
<
Job
*>
user_jobs
;
list
<
Profile
*>
user_profiles
;
list
<
const
Profile
*>
user_profiles
;
user
->
jobs_to_submit
(
date
,
user_jobs
,
user_profiles
);
for
(
Job
*
job
:
user_jobs
)
Loading