Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add and use callback instr_actor_on_creation
[simgrid.git] / examples / msg / energy-vm / energy-vm.c
index 6afa6fa..14fc3b4 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007-2010, 2013-2015. The SimGrid Team.
+/* Copyright (c) 2007-2018. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -25,9 +25,9 @@ static int dvfs(int argc, char *argv[])
 
   /* Host 1 */
   XBT_INFO("Creating and starting two VMs");
-  msg_vm_t vm_host1 = MSG_vm_create(host1, "vm_host1", 1, 2048, 10, 50);
+  msg_vm_t vm_host1 = MSG_vm_create_core(host1, "vm_host1");
   MSG_vm_start(vm_host1);
-  msg_vm_t vm_host2 = MSG_vm_create(host2, "vm_host3", 1, 2048, 10, 50);
+  msg_vm_t vm_host2 = MSG_vm_create_core(host2, "vm_host2");
   MSG_vm_start(vm_host2);
 
   XBT_INFO("Create two tasks on Host1: both inside a VM");