From: Augustin Degomme Date: Fri, 9 Apr 2021 17:24:33 +0000 (+0200) Subject: [ci-skip] we want to order by the largest first .. X-Git-Tag: v3.28~455^2~92 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/efb44ffc0e3b69f9e0105baf38d91deae45856c3 [ci-skip] we want to order by the largest first .. --- 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);