X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d20f024dba9ff1e9c8822237caaf963b9e913889..b22d0e4d776668a22f7bc6a680cc999c17fd43d4:/src/kernel/activity/CommImpl.cpp diff --git a/src/kernel/activity/CommImpl.cpp b/src/kernel/activity/CommImpl.cpp index c7517bf5ed..c5b8e12b69 100644 --- a/src/kernel/activity/CommImpl.cpp +++ b/src/kernel/activity/CommImpl.cpp @@ -6,7 +6,7 @@ #include "src/kernel/activity/CommImpl.hpp" #include "simgrid/modelchecker.h" -#include "src/mc/mc_replay.h" +#include "src/mc/mc_replay.hpp" #include "src/simix/smx_network_private.hpp" #include "src/surf/surf_interface.hpp" @@ -71,11 +71,7 @@ void simgrid::kernel::activity::CommImpl::cancel() /** @brief get the amount remaining from the communication */ double simgrid::kernel::activity::CommImpl::remains() { - if (state == SIMIX_RUNNING) - return surf_comm->getRemains(); - - /* FIXME: check what should be returned in the other cases */ - return 0; + return surf_comm->getRemains(); } /** @brief This is part of the cleanup process, probably an internal command */