]> AND Public Git Repository - simgrid.git/blobdiff - src/plugins/vm/VirtualMachineImpl.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cosmetics around ns-3
[simgrid.git] / src / plugins / vm / VirtualMachineImpl.cpp
index 9e20699df08b1d0583b293b12791d608556e2fbc..191d5cfd9a29c40316795710b2421187f3101d1b 100644 (file)
@@ -300,9 +300,9 @@ void VirtualMachineImpl::update_action_weight(){
   XBT_DEBUG("set the weight of the dummy CPU action of VM%p on PM to %d (#tasks: %d)", this, impact, active_tasks_);
 
   if (impact > 0)
-    action_->set_priority(1. / impact);
+    action_->set_sharing_penalty(1. / impact);
   else
-    action_->set_priority(0.);
+    action_->set_sharing_penalty(0.);
 
   action_->set_bound(std::min(impact * physical_host_->get_speed(), user_bound_));
 }