From cff653d00f47806c1962acb5a1abd1e61bb8b7ba Mon Sep 17 00:00:00 2001 From: alegrand Date: Thu, 2 Dec 2004 22:01:45 +0000 Subject: [PATCH] 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 --- src/surf/surf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1