]> granicus.if.org Git - pgbadger/commitdiff
Fix display of reference array instead of errors samples informations.
authorDarold Gilles <gilles@darold.net>
Wed, 6 Feb 2013 18:15:26 +0000 (19:15 +0100)
committerDarold Gilles <gilles@darold.net>
Wed, 6 Feb 2013 18:15:26 +0000 (19:15 +0100)
pgbadger

index 779bfc7f0d8cdb82ddfa3e88bac999fdd5d808b7..b9361d8a1f88f5810c626adbeee4bb9de1bf647e 100644 (file)
--- 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};