From: mquinson Date: Tue, 14 Jul 2009 08:46:36 +0000 (+0000) Subject: one more comment X-Git-Tag: SVN~1143 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3c6adda1bed5343613505208a8307e79d0ca4d27?ds=sidebyside one more comment git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6505 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- 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)) {