X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4b0aa1525597fd0800c4d00c6df3f3c49d53ee2c..9acedb4ebce15cd3399fcad4effb3fb79a0ee5ef:/src/mc/mc_global.cpp diff --git a/src/mc/mc_global.cpp b/src/mc/mc_global.cpp index 5941595cb6..f85660aa71 100644 --- a/src/mc/mc_global.cpp +++ b/src/mc/mc_global.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2008-2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2008-2019. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -175,11 +175,11 @@ double MC_process_clock_get(smx_actor_t process) if (simgrid::mc::processes_time.empty()) return 0; if (process != nullptr) - return simgrid::mc::processes_time[process->pid_]; + return simgrid::mc::processes_time[process->get_pid()]; return -1; } void MC_process_clock_add(smx_actor_t process, double amount) { - simgrid::mc::processes_time[process->pid_] += amount; + simgrid::mc::processes_time[process->get_pid()] += amount; }