From: alegrand Date: Thu, 2 Dec 2004 22:01:45 +0000 (+0000) Subject: Taking in account the fact that some resource may have no action terminated. X-Git-Tag: v3.3~4811 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/cff653d00f47806c1962acb5a1abd1e61bb8b7ba?ds=sidebyside Taking in account the fact that some resource may have no action terminated. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@539 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/surf/surf.c b/src/surf/surf.c index 41648deced..8d6ce0cbfe 100644 --- a/src/surf/surf.c +++ b/src/surf/surf.c @@ -114,7 +114,7 @@ xbt_heap_float_t surf_solve(void) xbt_dynar_foreach (resource_list,i,resource) { resource_next_action_end = resource->common_private->share_resources(NOW); - if((min<0) || (resource_next_action_end=0.0)) min = resource_next_action_end; }