X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/82230d737404aa70c3c2b5824d97109f1f129d58..5198991bb329c947bd497b66b2d837959ce20ee6:/src/instr/instr_paje_events.cpp diff --git a/src/instr/instr_paje_events.cpp b/src/instr/instr_paje_events.cpp index 29b7e34e50..9719ce57d9 100644 --- a/src/instr/instr_paje_events.cpp +++ b/src/instr/instr_paje_events.cpp @@ -156,7 +156,8 @@ void StateEvent::print() if (getContainer()->getName().find("rank-") != 0) stream << getContainer()->getName() << " " << extra_->print(); else - stream << getContainer()->getName().erase(0, 5) << " " << extra_->print(); + /* Subtract -1 because this is the process id and we transform it to the rank id */ + stream << stoi(getContainer()->getName().erase(0, 5)) - 1 << " " << extra_->print(); fprintf(tracing_files.at(getContainer()), "%s\n", stream.str().c_str()); } else {