X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7d4a9a7e27436e76b10c1b1f9ce794655dc070a2..01c70260177e586af94f9d221f9a5e616d8a504f:/src/surf/surf.c diff --git a/src/surf/surf.c b/src/surf/surf.c index 22aeea5247..3cf22634da 100644 --- a/src/surf/surf.c +++ b/src/surf/surf.c @@ -518,9 +518,11 @@ void surf_presolve(void) tmgr_history_get_next_event_leq(history, next_event_date, &value, (void **) &resource))) { - resource->model->model_private->update_resource_state(resource, - event, value, - NOW); + if (value >= 0){ + resource->model->model_private->update_resource_state(resource, + event, value, + NOW); + } } } xbt_dynar_foreach(model_list, iter, model)