Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Change the way VMs are created.
[simgrid.git] / src / plugins / vm / s4u_VirtualMachine.cpp
index a317f75..0285832 100644 (file)
@@ -216,7 +216,7 @@ sg_vm_t sg_vm_create_core(sg_host_t pm, const char* name)
  */
 sg_vm_t sg_vm_create_multicore(sg_host_t pm, const char* name, int coreAmount)
 {
-  return new simgrid::s4u::VirtualMachine(name, pm, coreAmount);
+  return pm->create_vm(name, coreAmount);
 }
 
 const char* sg_vm_get_name(const_sg_vm_t vm)