Skip to content

Commit

Permalink
Component summary table given fixed width
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwbrei committed Aug 19, 2024
1 parent 2365454 commit c6d03a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/libraries/JANA/Services/JParameterManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,12 @@ void JParameterManager::PrintParameters(int verbosity, int strictness) {

// Print table
JTablePrinter table;
table.AddColumn("Name");
table.AddColumn("Name", JTablePrinter::Justify::Left, 20);
if (warnings_present) {
table.AddColumn("Warnings"); // IsDeprecated column
}
table.AddColumn("Value", JTablePrinter::Justify::Left, 20);
table.AddColumn("Default", JTablePrinter::Justify::Left, 20);
table.AddColumn("Value", JTablePrinter::Justify::Left, 25);
table.AddColumn("Default", JTablePrinter::Justify::Left, 25);
table.AddColumn("Description", JTablePrinter::Justify::Left, 50);

for (JParameter* p: params_to_print) {
Expand Down
10 changes: 5 additions & 5 deletions src/libraries/JANA/Status/JComponentSummary.cc
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ void PrintComponentTable(std::ostream& os, const JComponentSummary& cs) {


JTablePrinter comp_table;
comp_table.AddColumn("Base");
comp_table.AddColumn("Type");
comp_table.AddColumn("Prefix");
comp_table.AddColumn("Level");
comp_table.AddColumn("Plugin");
comp_table.AddColumn("Base", JTablePrinter::Justify::Left, 12);
comp_table.AddColumn("Type", JTablePrinter::Justify::Left, 40);
comp_table.AddColumn("Prefix", JTablePrinter::Justify::Left, 40);
comp_table.AddColumn("Level", JTablePrinter::Justify::Left, 12);
comp_table.AddColumn("Plugin", JTablePrinter::Justify::Left, 16);

os << " Component Summary" << std::endl;

Expand Down

0 comments on commit c6d03a1

Please sign in to comment.