} 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 */