From 3c6adda1bed5343613505208a8307e79d0ca4d27 Mon Sep 17 00:00:00 2001 From: mquinson Date: Tue, 14 Jul 2009 08:46:36 +0000 Subject: [PATCH] one more comment git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6505 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/surf/maxmin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/surf/maxmin.c b/src/surf/maxmin.c index 26a77b12d8..e275354300 100644 --- a/src/surf/maxmin.c +++ b/src/surf/maxmin.c @@ -486,6 +486,7 @@ void lmm_solve(lmm_system_t sys) elem_list = &(cnst->element_set); cnst->usage = 0.0; xbt_swag_foreach(elem, elem_list) { + /* 0-weighted elements (ie, sleep actions) are at the end of the swag and we don't want to consider them */ if (elem->variable->weight <= 0) break; if ((elem->value > 0)) { -- 2.20.1