X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/530669c2712f635bba06f3eaa1819212ce68cd01..723d711ccfc8caac549ac6cf78da12233f98c777:/src/surf/surf.cpp diff --git a/src/surf/surf.cpp b/src/surf/surf.cpp index 2d9661742c..17fe0b0976 100644 --- a/src/surf/surf.cpp +++ b/src/surf/surf.cpp @@ -731,6 +731,8 @@ ResourceLmm::ResourceLmm(surf_model_t model, const char *name, xbt_dict_t props, p_power.peak = metric_peak; if (metric_trace) p_power.event = tmgr_history_add_trace(history, metric_trace, 0.0, 0, static_cast(this)); + else + p_power.event = NULL; } /**********