Use hostN intead of full hostname in Compare* summaries.

This commit is contained in:
Daniel Nichter
2012-07-17 16:47:33 -06:00
parent 859a8a2390
commit e797e463c1
6 changed files with 62 additions and 46 deletions

View File

@@ -836,8 +836,10 @@ sub report {
my $query_id_col = {
name => 'Query ID',
};
my $hostno = 0;
my @host_cols = map {
my $col = { name => $_->{name} };
$hostno++;
my $col = { name => "host$hostno" };
$col;
} @$hosts;
@@ -933,12 +935,14 @@ sub _report_diff_row_counts {
my $report = new ReportFormatter();
$report->set_title('Row count differences');
my $hostno = 0;
$report->set_columns(
$args{query_id_col},
map {
my $col = { name => $_->{name}, right_justify => 1 };
(map {
$hostno++;
my $col = { name => "host$hostno", right_justify => 1 };
$col;
} @{$args{hosts}},
} @{$args{hosts}}),
);
my $diff_row_counts = $self->{diffs}->{row_counts};