X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4a01e2ce3660f42bc685560c177592cc09699719..efb44ffc0e3b69f9e0105baf38d91deae45856c3:/src/smpi/internals/smpi_utils.cpp?ds=sidebyside diff --git a/src/smpi/internals/smpi_utils.cpp b/src/smpi/internals/smpi_utils.cpp index cec9084515..18434677e7 100644 --- a/src/smpi/internals/smpi_utils.cpp +++ b/src/smpi/internals/smpi_utils.cpp @@ -201,7 +201,7 @@ void print_memory_analysis() "Running smpirun with -wrapper \"valgrind --leak-check=full\" can provide more information", leaks.size()); if (max > 0) { - std::sort(leaks.begin(), leaks.end(), [](auto const& a, auto const& b) { return a.second.size < b.second.size; }); + std::sort(leaks.begin(), leaks.end(), [](auto const& a, auto const& b) { return a.second.size > b.second.size; }); bool truncate = max < leaks.size(); if (truncate) leaks.resize(max);