Commit 754eb00d authored by RILLING Louis's avatar RILLING Louis
Browse files

Align with s4u API change

parent 4c5651b9
Pipeline #235417 failed with stages
in 18 minutes and 54 seconds
......@@ -46,7 +46,7 @@ static double get_next_event()
simgrid::s4u::Engine* engine = simgrid::s4u::Engine::get_instance();
double time = simgrid::s4u::Engine::get_clock();
double next_event_time = std::numeric_limits<double>::infinity();
for (auto model : engine->get_model_list(simgrid::kernel::resource::Model::Type::NETWORK)) {
for (auto model : engine->get_all_models()) {
double model_event = time + model->next_occurring_event(time);
if (model_event < next_event_time && model_event > time) {
next_event_time = model_event;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment