Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Bug correction.
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 24 Apr 2006 11:59:20 +0000 (11:59 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 24 Apr 2006 11:59:20 +0000 (11:59 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2178 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/surf/maxmin.c

index 5126dd1..2bfa436 100644 (file)
@@ -423,8 +423,8 @@ void lmm_solve(lmm_system_t sys)
          bound and update min_usage accordingly. */
       DEBUG5("var=%p, var->bound=%f, var->weight=%f, min_usage=%f, var->bound*var->weight=%f",
             var, var->bound, var->weight, min_usage,var->bound * var->weight);
          bound and update min_usage accordingly. */
       DEBUG5("var=%p, var->bound=%f, var->weight=%f, min_usage=%f, var->bound*var->weight=%f",
             var, var->bound, var->weight, min_usage,var->bound * var->weight);
-      if ((var->bound > 0) && (var->bound / var->weight < min_usage)) {
-       min_usage = var->bound / var->weight;
+      if ((var->bound > 0) && (var->bound * var->weight < min_usage)) {
+       min_usage = var->bound * var->weight;
        DEBUG1("Updated min_usage=%f",min_usage);
       }
     }
        DEBUG1("Updated min_usage=%f",min_usage);
       }
     }