X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/778e54082c6ed8bf33208953e33c4c905b56333e..d2bb33858171f062e6bd6abd3d6982d37cd51de9:/src/simix/smx_process.c diff --git a/src/simix/smx_process.c b/src/simix/smx_process.c index 31843beba0..e182d8dfb5 100644 --- a/src/simix/smx_process.c +++ b/src/simix/smx_process.c @@ -15,6 +15,8 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_process, simix, "Logging specific to SIMIX (process)"); unsigned long simix_process_maxpid = 0; +/* FIXME: Ugly hack!*/ +extern double NOW; /** * \brief Returns the current agent. @@ -419,6 +421,7 @@ xbt_dict_t SIMIX_process_get_properties(smx_process_t process) void SIMIX_pre_process_sleep(smx_req_t req) { if (MC_IS_ENABLED) { + NOW += req->process_sleep.duration; req->process_sleep.result = SIMIX_DONE; SIMIX_request_answer(req); }