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
Also cleanup the fields of s_sg_platf_link_cbarg_t
[simgrid.git]
/
src
/
surf
/
network.c
diff --git
a/src/surf/network.c
b/src/surf/network.c
index
e42e22a
..
65c2fe4
100644
(file)
--- a/
src/surf/network.c
+++ b/
src/surf/network.c
@@
-196,20
+196,20
@@
static void net_parse_link_init(sg_platf_link_cbarg_t link)
{
XBT_DEBUG("link_CM02");
- if(link->
V_policy_initial_link
== SURF_LINK_FULLDUPLEX)
+ if(link->
policy
== SURF_LINK_FULLDUPLEX)
{
- net_create_resource(bprintf("%s_UP",link->
V_link_id), link->V_link_bandwidth, link->V_link_bandwidth_fil
e,
- link->
V_link_latency, link->V_link_latency_file, link->V_link_state, link->V_link_state_fil
e,
- link->
V_policy_initial_link
, link->properties);
- net_create_resource(bprintf("%s_DOWN",link->
V_link_id), link->V_link_bandwidth, link->V_link_bandwidth_fil
e,
- link->
V_link_latency, link->V_link_latency_file, link->V_link_state, link->V_link_state_fil
e,
- link->
V_policy_initial_link
, NULL); // FIXME: We need to deep copy the properties or we won't be able to free it
+ net_create_resource(bprintf("%s_UP",link->
id), link->bandwidth, link->bandwidth_trac
e,
+ link->
latency, link->latency_trace, link->state, link->state_trac
e,
+ link->
policy
, link->properties);
+ net_create_resource(bprintf("%s_DOWN",link->
id), link->bandwidth, link->bandwidth_trac
e,
+ link->
latency, link->latency_trace, link->state, link->state_trac
e,
+ link->
policy
, NULL); // FIXME: We need to deep copy the properties or we won't be able to free it
}
else
{
- net_create_resource(xbt_strdup(link->
V_link_id), link->V_link_bandwidth, link->V_link_bandwidth_fil
e,
- link->
V_link_latency, link->V_link_latency_file, link->V_link_state, link->V_link_state_fil
e,
- link->
V_policy_initial_link
, link->properties);
+ net_create_resource(xbt_strdup(link->
id), link->bandwidth, link->bandwidth_trac
e,
+ link->
latency, link->latency_trace, link->state, link->state_trac
e,
+ link->
policy
, link->properties);
}
}