Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
'major bug' fix in ptask_L07.
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 16 Oct 2007 13:54:48 +0000 (13:54 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 16 Oct 2007 13:54:48 +0000 (13:54 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4823 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/surf/workstation_ptask_L07.c

index 3e88b40..6d50b35 100644 (file)
@@ -99,7 +99,7 @@ static void update_action_bound(surf_action_workstation_L07_t action)
        for (k = 0; k < route_size; k++) {
          lat += route[k]->lat_current;
        }
-       lat_current=MAX(lat_current,lat/action->communication_amount[i * workstation_nb + j]);
+       lat_current=MAX(lat_current,lat*action->communication_amount[i * workstation_nb + j]);
       }
     }
   }