Skip to content

Commit

Permalink
All tests pass without any valgrind warning
Browse files Browse the repository at this point in the history
  • Loading branch information
henricasanova committed Jul 7, 2017
1 parent c50d807 commit 28bb148
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Expand Up @@ -690,7 +690,7 @@ namespace wrench {
return true;

} else if (ComputeServiceSubmitPilotJobRequestMessage *msg = dynamic_cast<ComputeServiceSubmitPilotJobRequestMessage *>(message.get())) {
WRENCH_INFO("Asked to run a pilot job with %d cores for %lf seconds", msg->job->getNumCores(),
WRENCH_INFO("Asked to run a pilot job with %ld cores for %lf seconds", msg->job->getNumCores(),
msg->job->getDuration());

// WRENCH_INFO("THE REPLY MAILBOX IS %s", msg->answer_mailbox.c_str());
Expand Down
7 changes: 4 additions & 3 deletions src/wrench/workflow_job/WorkflowJob.cpp
Expand Up @@ -21,8 +21,9 @@ namespace wrench {
* @param type: job type
* @param num_cores: the number of cores required by the job
*/
WorkflowJob::WorkflowJob(Type type, unsigned long num_cores) : type(type), num_cores(num_cores)
{}
WorkflowJob::WorkflowJob(Type type, unsigned long num_cores) : type(type), num_cores(num_cores) {
this->parent_compute_service = nullptr;
}


/**
Expand Down Expand Up @@ -69,7 +70,7 @@ namespace wrench {
*
* @return the number of cores
*/
unsigned int WorkflowJob::getNumCores() {
unsigned long WorkflowJob::getNumCores() {
return this->num_cores;
}

Expand Down
2 changes: 1 addition & 1 deletion src/wrench/workflow_job/WorkflowJob.h
Expand Up @@ -44,7 +44,7 @@ namespace wrench {

std::string getName();

unsigned int getNumCores();
unsigned long getNumCores();

/***********************/
/** \cond INTERNAL */
Expand Down

0 comments on commit 28bb148

Please sign in to comment.