From: Arnaud Legrand Date: Mon, 4 Feb 2013 13:01:18 +0000 (+0100) Subject: Bug fix. The date given when updating the state of a resource was incorrect. It could... X-Git-Tag: v3_9_90~510^2~58 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/bfd195fd055c87a406ec2982cc75290321ca4059 Bug fix. The date given when updating the state of a resource was incorrect. It could result in incoherent traces. --- diff --git a/src/surf/surf.c b/src/surf/surf.c index 6b03d70cc4..8a1b6dd407 100644 --- a/src/surf/surf.c +++ b/src/surf/surf.c @@ -629,7 +629,7 @@ double surf_solve(double max_date) resource->model->name, min); resource->model->model_private->update_resource_state(resource, event, value, - NOW + min); + next_event_date); } } while (1);