From: Darold Gilles Date: Wed, 6 Feb 2013 18:15:26 +0000 (+0100) Subject: Fix display of reference array instead of errors samples informations. X-Git-Tag: v3.2~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69b8c7f65a040c303195dd76ddf76e7293eb4bfa;p=pgbadger Fix display of reference array instead of errors samples informations. --- diff --git a/pgbadger b/pgbadger index 779bfc7..b9361d8 100644 --- a/pgbadger +++ b/pgbadger @@ -4022,13 +4022,13 @@ sub load_stats foreach my $q (keys %_error_info) { $error_info{$q}{count} += $_error_info{$q}{count}; - push(@{$error_info{$q}{date}}, $_error_info{$q}{date}); - push(@{$error_info{$q}{detail}}, $_error_info{$q}{detail}); - push(@{$error_info{$q}{context}}, $_error_info{$q}{context}); - push(@{$error_info{$q}{statement}}, $_error_info{$q}{statement}); - push(@{$error_info{$q}{hint}}, $_error_info{$q}{hint}); - push(@{$error_info{$q}{error}}, $_error_info{$q}{error}); - push(@{$error_info{$q}{db}}, $_error_info{$q}{db}); + push(@{$error_info{$q}{date}}, @{$_error_info{$q}{date}}); + push(@{$error_info{$q}{detail}}, @{$_error_info{$q}{detail}}); + push(@{$error_info{$q}{context}}, @{$_error_info{$q}{context}}); + push(@{$error_info{$q}{statement}}, @{$_error_info{$q}{statement}}); + push(@{$error_info{$q}{hint}}, @{$_error_info{$q}{hint}}); + push(@{$error_info{$q}{error}}, @{$_error_info{$q}{error}}); + push(@{$error_info{$q}{db}}, @{$_error_info{$q}{db}}); foreach my $day (keys %{ $_error_info{$q}{chronos} }) { foreach my $hour (keys %{$_error_info{$q}{chronos}{$day}}) { $error_info{$q}{chronos}{$day}{$hour}{count} += $_error_info{$q}{chronos}{$day}{$hour}{count};