X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d8eb62b207b566949a0d9ce649a7b21e226b9168..78edc5d868c7cb88107abcdc887180ff15c5228f:/src/surf/cpu_ti.cpp diff --git a/src/surf/cpu_ti.cpp b/src/surf/cpu_ti.cpp index 99d32a6738..d78897b4dc 100644 --- a/src/surf/cpu_ti.cpp +++ b/src/surf/cpu_ti.cpp @@ -398,11 +398,12 @@ void CpuTi::apply_event(tmgr_trace_event_t event, double value) } else if (event == state_event_) { if (value > 0) { - if (is_off()) - host_that_restart.push_back(get_host()); - turn_on(); + if (is_off()) { + XBT_VERB("Restart processes on host %s", get_host()->get_cname()); + get_host()->turn_on(); + } } else { - turn_off(); + get_host()->turn_off(); double date = surf_get_clock(); /* put all action running on cpu to failed */