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
objectifies surf::Action::State
[simgrid.git]
/
src
/
surf
/
network_ns3.cpp
diff --git
a/src/surf/network_ns3.cpp
b/src/surf/network_ns3.cpp
index
59a28ea
..
d3f0405
100644
(file)
--- a/
src/surf/network_ns3.cpp
+++ b/
src/surf/network_ns3.cpp
@@
-323,7
+323,7
@@
void NetworkNS3Model::updateActionsState(double now, double delta)
action->setRemains(action->getCost() - ns3_get_socket_sent(data));
if (TRACE_is_enabled() &&
action->setRemains(action->getCost() - ns3_get_socket_sent(data));
if (TRACE_is_enabled() &&
- action->getState() ==
SURF_ACTION_RUNNING
){
+ action->getState() ==
Action::State::running
){
double data_sent = ns3_get_socket_sent(data);
double data_delta_sent = data_sent - action->m_lastSent;
double data_sent = ns3_get_socket_sent(data);
double data_delta_sent = data_sent - action->m_lastSent;
@@
-341,7
+341,7
@@
void NetworkNS3Model::updateActionsState(double now, double delta)
xbt_dynar_push(socket_to_destroy,&key);
XBT_DEBUG("Destroy socket %p of action %p", key, action);
action->finish();
xbt_dynar_push(socket_to_destroy,&key);
XBT_DEBUG("Destroy socket %p of action %p", key, action);
action->finish();
- action->setState(
SURF_ACTION_DONE
);
+ action->setState(
Action::State::done
);
}
}
}
}