X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/98a4fb37cf38be98161ec6fc43ed0733eaefcbee..dd217af23fbb42b3d76218e5c60b6b3e7f154583:/src/surf/surf_c_bindings.cpp diff --git a/src/surf/surf_c_bindings.cpp b/src/surf/surf_c_bindings.cpp index f111cc23ce..10d2874153 100644 --- a/src/surf/surf_c_bindings.cpp +++ b/src/surf/surf_c_bindings.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2013-2020. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -82,7 +82,7 @@ double surf_solve(double max_date) XBT_DEBUG("Looking for next trace event"); - while (1) { // Handle next occurring events until none remains + while (true) { // Handle next occurring events until none remains double next_event_date = simgrid::kernel::profile::future_evt_set.next_date(); XBT_DEBUG("Next TRACE event: %f", next_event_date); @@ -146,7 +146,5 @@ double surf_solve(double max_date) simgrid::s4u::Engine::on_time_advance(time_delta); - TRACE_paje_dump_buffer(false); - return time_delta; }