From 129d63e8d61903819d6bb94b41996a8f045fa699 Mon Sep 17 00:00:00 2001 From: alegrand Date: Wed, 12 Jul 2006 23:24:25 +0000 Subject: [PATCH] Move clock modification to the right location so that finish_time are correct... git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2556 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/surf/surf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/surf/surf.c b/src/surf/surf.c index 45b1ab4d85..cbb8725c26 100644 --- a/src/surf/surf.c +++ b/src/surf/surf.c @@ -317,12 +317,12 @@ double surf_solve(void) DEBUG1("Duration set to %f", min); + NOW = NOW + min; + xbt_dynar_foreach(resource_list, i, resource) { resource->common_private->update_actions_state(NOW, min); } - NOW = NOW + min; - return min; } -- 2.20.1