Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use priorities...
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 24 Aug 2007 13:19:52 +0000 (13:19 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 24 Aug 2007 13:19:52 +0000 (13:19 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4113 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/surf/cpu.c

index f0948eb..0568742 100644 (file)
@@ -313,6 +313,8 @@ static void action_set_priority(surf_action_t action, double priority)
 {
   XBT_IN2("(%p,%g)", action, priority);
   action->priority = priority;
 {
   XBT_IN2("(%p,%g)", action, priority);
   action->priority = priority;
+  lmm_update_variable_weight(cpu_maxmin_system, ((surf_action_cpu_Cas01_t) action)->variable, priority);
+
   XBT_OUT;
 }
 
   XBT_OUT;
 }