From ba3abd3b4e165446def969c6f763325434da158d Mon Sep 17 00:00:00 2001 From: Arnaud Legrand Date: Mon, 4 Feb 2013 14:01:18 +0100 Subject: [PATCH] Bug fix. The date given when updating the state of a resource was incorrect. It could result in incoherent traces. --- 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 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); -- 2.20.1