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
Initialize another bunch of variables.
[simgrid.git]
/
src
/
surf
/
surf.cpp
diff --git
a/src/surf/surf.cpp
b/src/surf/surf.cpp
index
2d96617
..
17fe0b0
100644
(file)
--- a/
src/surf/surf.cpp
+++ b/
src/surf/surf.cpp
@@
-731,6
+731,8
@@
ResourceLmm::ResourceLmm(surf_model_t model, const char *name, xbt_dict_t props,
p_power.peak = metric_peak;
if (metric_trace)
p_power.event = tmgr_history_add_trace(history, metric_trace, 0.0, 0, static_cast<ResourcePtr>(this));
+ else
+ p_power.event = NULL;
}
/**********