X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/78c8b9893aa6947905617155ed8fa2538147e5e8..dda3ca8a409584cb8939acbd287d69912d247622:/src/surf/surf.c diff --git a/src/surf/surf.c b/src/surf/surf.c index 3cf22634da..254fa765f9 100644 --- a/src/surf/surf.c +++ b/src/surf/surf.c @@ -600,12 +600,12 @@ double surf_solve(double max_date) min = model_next_action_end; } - if (next_event_date == -1.0) { + if (next_event_date < 0.0) { XBT_DEBUG("no next TRACE event. Stop searching for it"); break; } - if ((min != -1.0) && (next_event_date > NOW + min)) break; + if ((min == -1.0) || (next_event_date > NOW + min)) break; XBT_DEBUG("Updating models"); while ((event =