Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
give informative names to Host methods
[simgrid.git] / src / surf / vm_hl13.cpp
index c2ff00a..c0f76ca 100644 (file)
@@ -338,7 +338,7 @@ void VMHL13::setAffinity(Cpu *cpu, unsigned long mask){
 sg_host_t VMHL13::getPm()
 {
   // TODO, store pointer to the PM?
-  return simgrid::Host::find_host(p_subWs->getName());
+  return simgrid::Host::by_name_or_null(p_subWs->getName());
 }
 
 /* Adding a task to a VM updates the VCPU task on its physical machine. */