A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allow to pass a std::string as message to Exceptions
[simgrid.git]
/
src
/
surf
/
cpu_ti.cpp
diff --git
a/src/surf/cpu_ti.cpp
b/src/surf/cpu_ti.cpp
index
99d32a6
..
d78897b
100644
(file)
--- 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) {
} 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 {
} else {
- turn_off();
+
get_host()->
turn_off();
double date = surf_get_clock();
/* put all action running on cpu to failed */
double date = surf_get_clock();
/* put all action running on cpu to failed */