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
reduce the amount of mallocs (and plug a memleak)
[simgrid.git]
/
src
/
surf
/
instr_routing.cpp
diff --git
a/src/surf/instr_routing.cpp
b/src/surf/instr_routing.cpp
index
92d32b3
..
7d75080
100644
(file)
--- a/
src/surf/instr_routing.cpp
+++ b/
src/surf/instr_routing.cpp
@@
-265,7
+265,7
@@
void sg_instr_new_host(sg_platf_host_cbarg_t host)
speed = PJ_type_variable_new ("power", nullptr, container->type);
}
speed = PJ_type_variable_new ("power", nullptr, container->type);
}
- double current_speed_state = host->speed_per_pstate
->at(host->pstate)
;
+ double current_speed_state = host->speed_per_pstate
[host->pstate]
;
new_pajeSetVariable (0, container, speed, current_speed_state);
}
if (TRACE_uncategorized()){
new_pajeSetVariable (0, container, speed, current_speed_state);
}
if (TRACE_uncategorized()){