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
Please Sonar and scan-build.
[simgrid.git]
/
src
/
plugins
/
host_energy.cpp
diff --git
a/src/plugins/host_energy.cpp
b/src/plugins/host_energy.cpp
index
47bfda4
..
d2f5dc8
100644
(file)
--- a/
src/plugins/host_energy.cpp
+++ b/
src/plugins/host_energy.cpp
@@
-514,6
+514,7
@@
void sg_host_energy_plugin_init()
simgrid::s4u::Host* host = activity.get_host();
if (const auto* vm = dynamic_cast<simgrid::s4u::VirtualMachine*>(host))
host = vm->get_pm();
+ xbt_assert(host != nullptr);
host->extension<HostEnergy>()->update();
}
});