From: Guillaume Le Bihan Date: Tue, 24 Mar 2015 15:17:09 +0000 (+0100) Subject: Some changes in load_stats sub... X-Git-Tag: v7.0~13^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd2f8c05e7a3fead46923194c3b89dddae6cc2ce;p=pgbadger Some changes in load_stats sub... --- diff --git a/pgbadger b/pgbadger index 3374bc7..1894e2e 100755 --- a/pgbadger +++ b/pgbadger @@ -8715,6 +8715,14 @@ sub load_stats } } + ### normalyzed_user ### + foreach my $stmt (keys %_normalyzed_user) { + foreach my $usr (keys %{$_normalyzed_user{$stmt}}) { + $normalyzed_user{$stmt}{$usr}{Duration} = $_normalyzed_user{$stmt}{$usr}{Duration}; + $normalyzed_user{$stmt}{$usr}{numberRequests} = $_normalyzed_user{$stmt}{$usr}{numberRequests}; + } + } + ### session_info ### foreach my $db (keys %{ $_session_info{database}}) { @@ -8835,6 +8843,7 @@ sub dump_as_binary 'overall_stat' => \%overall_stat, 'overall_checkpoint' => \%overall_checkpoint, 'normalyzed_info' => \%normalyzed_info, + 'normalyzed_user' => \%normalyzed_user, 'error_info' => \%error_info, 'connection_info' => \%connection_info, 'database_info' => \%database_info, @@ -8873,6 +8882,7 @@ sub dump_as_json 'overall_stat' => \%overall_stat, 'overall_checkpoint' => \%overall_checkpoint, 'normalyzed_info' => \%normalyzed_info, + 'normalyzed_user' => \%normalyzed_user, 'error_info' => \%error_info, 'connection_info' => \%connection_info, 'database_info' => \%database_info,