From 7be95d889d2a6a37554069ae48c427e5a5e7efaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Montan=CC=83ana?= Date: Wed, 17 Apr 2024 11:35:43 +0200 Subject: [PATCH] Fix some output mistakes in b_manage experiments list --- lib/argparse | 2 +- lib/catch2 | 2 +- lib/json | 2 +- src/manage/ManageScreen.cpp | 2 +- src/results/Result.cpp | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/argparse b/lib/argparse index c69d8e1..9550b0a 160000 --- a/lib/argparse +++ b/lib/argparse @@ -1 +1 @@ -Subproject commit c69d8e19606e5879196810dd2c5ecc9c3ffe7c2f +Subproject commit 9550b0a88c85120a0bf456af935eed2956c73340 diff --git a/lib/catch2 b/lib/catch2 index 8ac8190..53ddf37 160000 --- a/lib/catch2 +++ b/lib/catch2 @@ -1 +1 @@ -Subproject commit 8ac8190e494a381072c89f5e161b92a08d98b37b +Subproject commit 53ddf37af4488cac7724761858ae3cca9d2d65e7 diff --git a/lib/json b/lib/json index c883fb0..8c391e0 160000 --- a/lib/json +++ b/lib/json @@ -1 +1 @@ -Subproject commit c883fb0f17cbdf75545bddcc551e21a924a31b05 +Subproject commit 8c391e04fe4195d8be862c97f38cfe10e2a3472e diff --git a/src/manage/ManageScreen.cpp b/src/manage/ManageScreen.cpp index f2d58dd..1705912 100644 --- a/src/manage/ManageScreen.cpp +++ b/src/manage/ManageScreen.cpp @@ -206,7 +206,7 @@ namespace platform { // int maxModel = results.maxModelSize(); int maxTitle = results.maxTitleSize(); - std::vector header_lengths = { 3, 10, maxModel, 10, 9, 12, 2, 3, 7, maxTitle }; + std::vector header_lengths = { 3, 10, maxModel, 11, 10, 12, 2, 3, 7, maxTitle }; std::cout << Colors::RESET(); std::string arrow_dn = Symbols::down_arrow + " "; std::string arrow_up = Symbols::up_arrow + " "; diff --git a/src/results/Result.cpp b/src/results/Result.cpp index 0cc2c85..d058c85 100644 --- a/src/results/Result.cpp +++ b/src/results/Result.cpp @@ -90,13 +90,13 @@ namespace platform { std::string durationUnit = duration > 3600 ? "h" : duration > 60 ? "m" : "s"; oss << data["date"].get() << " "; oss << std::setw(maxModel) << std::left << data["model"].get() << " "; - oss << std::setw(10) << std::left << data["score_name"].get() << " "; - oss << std::right << std::setw(9) << std::setprecision(7) << std::fixed << score << " "; + oss << std::setw(11) << std::left << data["score_name"].get() << " "; + oss << std::right << std::setw(10) << std::setprecision(7) << std::fixed << score << " "; oss << std::left << std::setw(12) << data["platform"].get() << " "; oss << std::left << std::setw(2) << sd << " "; auto completeString = isComplete() ? "C" : "P"; oss << std::setw(1) << " " << completeString << " "; - oss << std::setw(5) << std::setprecision(2) << std::fixed << durationShow << " " << durationUnit << " "; + oss << std::setw(5) << std::right << std::setprecision(2) << std::fixed << durationShow << " " << durationUnit << " "; oss << std::setw(50) << std::left << data["title"].get() << " "; return oss.str(); }