Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
monkey-workers: reduce the amount of simcalls during reboots
[simgrid.git] / teshsuite / s4u / vm-live-migration / vm-live-migration.cpp
index 14bd18926a958a3d77acc31efd10f180a4b87097..62570bb606b8c1d9f25e2ca53abc99b1a8e373f5 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007-2021. The SimGrid Team.
+/* Copyright (c) 2007-2022. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -37,7 +37,7 @@ int main(int argc, char* argv[])
 
   e.load_platform(argv[1]);
   auto* pm = e.host_by_name("host1");
-  auto* vm = new simgrid::s4u::VirtualMachine("VM0", pm, 1 /*nCores*/);
+  auto* vm = pm->create_vm("VM0", 1 /*nCores*/);
   vm->set_ramsize(1250000000)->start();
   simgrid::s4u::Actor::create("executor", vm, task_executor);