Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
batsim
batsim
Commits
c631d1a1
Commit
c631d1a1
authored
Jun 21, 2017
by
Millian Poquet
Browse files
[code] codacy workflow fixes
parent
3f228e3d
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/jobs_execution.cpp
View file @
c631d1a1
...
...
@@ -402,7 +402,9 @@ int waiter_process(int argc, char *argv[])
double
time_to_wait
=
args
->
target_time
-
curr_time
;
// Sometimes time_to_wait is so small that it does not affect MSG_process_sleep. The value of 1e-5 have been found on trial-error.
if
(
time_to_wait
<
1e-5
)
{
time_to_wait
=
1e-5
;
}
XBT_INFO
(
"Sleeping %g seconds to reach time %g"
,
time_to_wait
,
args
->
target_time
);
MSG_process_sleep
(
time_to_wait
);
XBT_INFO
(
"Sleeping done"
);
...
...
src/workflow.cpp
View file @
c631d1a1
...
...
@@ -193,7 +193,7 @@ int Workflow::get_maximum_depth()
Task
::
Task
(
const
int
num_procs
,
const
double
execution_time
,
std
::
string
id
)
:
Task
::
Task
(
const
int
num_procs
,
const
double
execution_time
,
const
string
&
id
)
:
num_procs
(
num_procs
),
execution_time
(
execution_time
),
id
(
id
)
...
...
src/workflow.hpp
View file @
c631d1a1
...
...
@@ -28,7 +28,7 @@ public:
* @brief Builds an empty Workflow
* @param[in] name The Workflow name
*/
Workflow
(
const
std
::
string
&
name
);
explicit
Workflow
(
const
std
::
string
&
name
);
/**
* @brief Destroys a Workflow
...
...
@@ -107,7 +107,7 @@ public:
* @param[in] execution_time The execution time of the task
* @param[in] id The task id
*/
Task
(
const
int
num_procs
,
const
double
execution_time
,
std
::
string
id
);
Task
(
const
int
num_procs
,
const
double
execution_time
,
const
std
::
string
&
id
);
/**
* @brief Destructor
...
...
Write
Preview
Markdown
is supported
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