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
Make room for the upcoming network energy plugin
[simgrid.git]
/
examples
/
msg
/
energy-vm
/
energy-vm.c
diff --git
a/examples/msg/energy-vm/energy-vm.c
b/examples/msg/energy-vm/energy-vm.c
index
752822a
..
8a2011d
100644
(file)
--- a/
examples/msg/energy-vm/energy-vm.c
+++ b/
examples/msg/energy-vm/energy-vm.c
@@
-58,8
+58,7
@@
static int dvfs(int argc, char *argv[])
int main(int argc, char *argv[])
{
int main(int argc, char *argv[])
{
- msg_error_t res = MSG_OK;
- sg_energy_plugin_init();
+ sg_host_energy_plugin_init();
MSG_init(&argc, argv);
xbt_assert(argc > 1, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]);
MSG_init(&argc, argv);
xbt_assert(argc > 1, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]);
@@
-68,7
+67,7
@@
int main(int argc, char *argv[])
MSG_process_create("dvfs",dvfs,NULL,MSG_host_by_name("MyHost1"));
MSG_process_create("dvfs",dvfs,NULL,MSG_host_by_name("MyHost1"));
- res = MSG_main();
+
msg_error_t
res = MSG_main();
XBT_INFO("Total simulation time: %.2f; All hosts must have the exact same energy consumption.", MSG_get_clock());
XBT_INFO("Total simulation time: %.2f; All hosts must have the exact same energy consumption.", MSG_get_clock());