X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d6d6125ce98df87b1f8a2407f3245513847af6cd..c85e43e7cc3034aefc758257a387d32026c05ef4:/examples/msg/energy/consumption/energy_consumption.c diff --git a/examples/msg/energy/consumption/energy_consumption.c b/examples/msg/energy/consumption/energy_consumption.c index 2b70166b37..45027a88cb 100644 --- a/examples/msg/energy/consumption/energy_consumption.c +++ b/examples/msg/energy/consumption/energy_consumption.c @@ -24,7 +24,7 @@ int dvfs(int argc, char *argv[]) { msg_host_t host = NULL; msg_task_t task1 = NULL; - host = MSG_get_host_by_name("MyHost1"); + host = MSG_host_by_name("MyHost1"); XBT_INFO("Energetic profile: %s", @@ -78,8 +78,8 @@ int dvfs(int argc, char *argv[]) // =========== Turn the other host off ========== XBT_INFO("Turning MyHost2 off, and sleeping another 10 seconds. MyHost2 dissipated %.0f J so far.", - MSG_host_get_consumed_energy(MSG_get_host_by_name("MyHost2")) ); - MSG_host_off(MSG_get_host_by_name("MyHost2")); + MSG_host_get_consumed_energy(MSG_host_by_name("MyHost2")) ); + MSG_host_off(MSG_host_by_name("MyHost2")); start = MSG_get_clock(); MSG_process_sleep(10); XBT_INFO("Done sleeping (duration: %.2f s). Current peak speed=%.0E flop/s; Energy dissipated=%.0f J",