Commit c631d1a1 authored by Millian Poquet's avatar Millian Poquet
Browse files

[code] codacy workflow fixes

parent 3f228e3d
......@@ -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");
......
......@@ -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)
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment