Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal authored and FlorentinDUBOIS committed Jul 13, 2022
1 parent 809a481 commit 194908f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/src/ctl/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -672,13 +672,13 @@ fn print_metrics(table_name: &str, data: &BTreeMap<String, BTreeMap<String, Filt

if !metrics.is_empty() {
let mut table = Table::new();
table.set_format(*prettytable::format::consts::FORMAT_NO_BORDER_LINE_SEPARATOR);

let mut row = vec![cell!(table_name)];
for key in data.keys() {
row.push(cell!(key));
}
table.add_row(Row::new(row));

table.set_titles(Row::new(row));

for metric in metrics {
let mut row = vec![cell!(metric)];
Expand Down Expand Up @@ -710,12 +710,13 @@ fn print_metrics(table_name: &str, data: &BTreeMap<String, BTreeMap<String, Filt

if !time_metrics.is_empty() {
let mut timing_table = Table::new();
timing_table.set_format(*prettytable::format::consts::FORMAT_NO_BORDER_LINE_SEPARATOR);

let mut row = vec![cell!(table_name)];
for key in data.keys() {
row.push(cell!(key));
}
timing_table.add_row(Row::new(row));
timing_table.set_titles(Row::new(row));


for metric in time_metrics {
Expand Down

0 comments on commit 194908f

Please sign in to comment.