From: alegrand Date: Wed, 12 Jul 2006 23:24:25 +0000 (+0000) Subject: Move clock modification to the right location so that finish_time are correct... X-Git-Tag: v3.3~2802 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/129d63e8d61903819d6bb94b41996a8f045fa699 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 --- 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; }