Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use MSG_host_by_name() instead of MSG_get_host_by_name()
[simgrid.git] / examples / msg / energy / onoff / onoff.c
index 2a03378..40a0979 100644 (file)
@@ -65,7 +65,7 @@ static void simulate_shutdown(msg_host_t host) {
 }
 
 static int onoff(int argc, char *argv[]) {
-       msg_host_t host1 = MSG_get_host_by_name("MyHost1");
+       msg_host_t host1 = MSG_host_by_name("MyHost1");
 
        XBT_INFO("Energetic profile: %s",
                        MSG_host_get_property_value(host1,"watt_per_state"));