X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b4c416b8b1a5cf0b3f4e6220303548d673603385..f783ed4680c6862a1b7543237e89d1221334bae0:/src/simix/smx_global.c?ds=sidebyside diff --git a/src/simix/smx_global.c b/src/simix/smx_global.c index abc2281e7b..ebd3dea594 100644 --- a/src/simix/smx_global.c +++ b/src/simix/smx_global.c @@ -209,7 +209,9 @@ void SIMIX_run(void) } } - time = surf_solve(SIMIX_timer_next()); + time = SIMIX_timer_next(); + if (time != -1.0 || xbt_swag_size(simix_global->process_list) != 0) + time = surf_solve(time); /* Notify all the hosts that have failed */ /* FIXME: iterate through the list of failed host and mark each of them */