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
No need to rebuild the parser if you're not a maintainer.
[simgrid.git]
/
src
/
surf
/
network.c
diff --git
a/src/surf/network.c
b/src/surf/network.c
index
c3cfc65
..
9a59eaf
100644
(file)
--- a/
src/surf/network.c
+++ b/
src/surf/network.c
@@
-403,6
+403,10
@@
static surf_action_t communicate(void *src, void *dst, double size, double rate)
lmm_update_variable_bound(maxmin_system, action->variable,
min(action->rate,SG_TCP_CTE_GAMMA / action->lat_current));
lmm_update_variable_bound(maxmin_system, action->variable,
min(action->rate,SG_TCP_CTE_GAMMA / action->lat_current));
+ if(route_size == 0) {
+ surf_action_change_state((surf_action_t) action, SURF_ACTION_DONE);
+ }
+
for (i = 0; i < route_size; i++)
lmm_expand(maxmin_system, route[i]->constraint, action->variable, 1.0);
for (i = 0; i < route_size; i++)
lmm_expand(maxmin_system, route[i]->constraint, action->variable, 1.0);