Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
batsim
batsim
Commits
a5597ff8
Commit
a5597ff8
authored
Jun 20, 2017
by
Millian Poquet
Browse files
[code] codacy cosmetics
parent
6e1e44fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/machine_range.cpp
View file @
a5597ff8
...
...
@@ -259,7 +259,9 @@ int MachineRange::operator[](int index) const
// TODO: avoid O(n) retrieval
auto
machine_it
=
this
->
elements_begin
();
for
(
int
i
=
0
;
i
<
index
;
++
i
)
{
++
machine_it
;
}
return
*
machine_it
;
}
src/protocol.cpp
View file @
a5597ff8
...
...
@@ -560,7 +560,9 @@ void JsonProtocolReader::handle_execute_job(int event_number,
// Default mapping
message
->
allocation
->
mapping
.
resize
(
nb_allocated_resources
);
for
(
int
i
=
0
;
i
<
nb_allocated_resources
;
++
i
)
{
message
->
allocation
->
mapping
[
i
]
=
i
;
}
}
// Everything has been parsed correctly, let's inject the message into the simulation.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment