From: Darold Gilles Date: Tue, 10 Jul 2012 15:04:58 +0000 (+0200) Subject: Fix graph download button id on new connection graph X-Git-Tag: v3.2~190 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=066f4e4c2eabd6c3f0197172dbe64576d9d55584;p=pgbadger Fix graph download button id on new connection graph --- diff --git a/pgbadger b/pgbadger index 0877ff8..1e2cba4 100755 --- a/pgbadger +++ b/pgbadger @@ -1675,7 +1675,7 @@ sub dump_as_html $d1 =~ s/,$//; $d2 =~ s/,$//; $d3 =~ s/,$//; - &flotr2_graph(1, 'connectionspersecond_graph', $d1, $d2, $d3, 'Connections per second (' . $avg_minutes . ' minutes average)', + &flotr2_graph(2, 'connectionspersecond_graph', $d1, $d2, $d3, 'Connections per second (' . $avg_minutes . ' minutes average)', 'Connections per second','Maximum','Average','Minimum'); $d1 = ''; $d2 = ''; @@ -1695,7 +1695,7 @@ sub dump_as_html } $d1 =~ s/,$//; $d2 =~ s/,$//; - &flotr2_graph(2, 'allqueries_graph', $d1, '', '', 'All queries', + &flotr2_graph(3, 'allqueries_graph', $d1, '', '', 'All queries', 'Queries','Number of queries','','','Duration',$d2,'Average duration (s)'); $d1 = ''; $d2 = ''; @@ -1714,7 +1714,7 @@ sub dump_as_html } $d1 =~ s/,$//; $d2 =~ s/,$//; - &flotr2_graph(3, 'selectqueries_graph', $d1, '', '', 'SELECT queries', + &flotr2_graph(4, 'selectqueries_graph', $d1, '', '', 'SELECT queries', 'Queries','Number of queries','','','Duration',$d2,'Average duration (s)'); $d1 = ''; $d2 = ''; @@ -1740,7 +1740,7 @@ sub dump_as_html $d2 =~ s/,$//; $d3 =~ s/,$//; $d4 =~ s/,$//; - &flotr2_graph(4, 'writequeries_graph', $d1, $d2, $d3, 'Write queries', + &flotr2_graph(5, 'writequeries_graph', $d1, $d2, $d3, 'Write queries', 'Queries','DELETE queries','INSERT queries','UPDATE queries','Duration',$d4,'Average duration (s)'); $d1 = ''; $d2 = ''; @@ -1809,7 +1809,7 @@ sub dump_as_html } } $d1 =~ s/,$//; - &flotr2_graph(5, 'checkpointwritebuffers_graph', $d1, '', '', 'Checkpoint write buffers', + &flotr2_graph(6, 'checkpointwritebuffers_graph', $d1, '', '', 'Checkpoint write buffers', 'Buffers','Write buffers','',''); $d1 = ''; @@ -1828,7 +1828,7 @@ sub dump_as_html $d1 =~ s/,$//; $d2 =~ s/,$//; $d3 =~ s/,$//; - &flotr2_graph(6, 'checkpointfiles_graph', $d1, $d2, $d3, 'Checkpoint Wal files usage', + &flotr2_graph(7, 'checkpointfiles_graph', $d1, $d2, $d3, 'Checkpoint Wal files usage', 'Number of files','Added','Removed','Recycled'); $d1 = ''; $d2 = ''; @@ -1850,7 +1850,7 @@ sub dump_as_html } $d1 =~ s/,$//; $d2 =~ s/,$//; - &flotr2_graph(7, 'temporaryfile_graph', $d1, '', '', 'Temporary files', + &flotr2_graph(8, 'temporaryfile_graph', $d1, '', '', 'Temporary files', 'Size of files','Size of files','','','Number of files',$d2,'Number of files'); $d1 = ''; $d2 = ''; @@ -1896,7 +1896,7 @@ sub dump_as_html } else { $data{"Sum types < $pie_percentage_limit%"} += $total - $totala; } - &flotr2_piegraph(8, 'queriesbytype_graph','Type of queries', %data); + &flotr2_piegraph(9, 'queriesbytype_graph','Type of queries', %data); } print $fh "\n"; } @@ -1945,7 +1945,7 @@ sub dump_as_html $locktype{$small[0]} = $locktype{"Sum types < $pie_percentage_limit%"}; delete $locktype{"Sum types < $pie_percentage_limit%"}; } - &flotr2_piegraph(9, 'lockbytype_graph','Type of locks', %locktype); + &flotr2_piegraph(10, 'lockbytype_graph','Type of locks', %locktype); } print $fh "\n"; } @@ -1988,7 +1988,7 @@ sub dump_as_html $infos{$small[0]} = $infos{"Sum sessions < $pie_percentage_limit%"}; delete $infos{"Sum sessions < $pie_percentage_limit%"}; } - &flotr2_piegraph(10, 'databasesessions_graph','Sessions per database', %infos); + &flotr2_piegraph(11, 'databasesessions_graph','Sessions per database', %infos); } print $fh "\n"; } @@ -2030,7 +2030,7 @@ sub dump_as_html $infos{$small[0]} = $infos{"Sum sessions < $pie_percentage_limit%"}; delete $infos{"Sum sessions < $pie_percentage_limit%"}; } - &flotr2_piegraph(11, 'usersessions_graph','Sessions per user', %infos); + &flotr2_piegraph(12, 'usersessions_graph','Sessions per user', %infos); } print $fh "\n"; } @@ -2073,7 +2073,7 @@ sub dump_as_html $infos{$small[0]} = $infos{"Sum sessions < $pie_percentage_limit%"}; delete $infos{"Sum sessions < $pie_percentage_limit%"}; } - &flotr2_piegraph(12, 'hostsessions_graph','Sessions per host', %infos); + &flotr2_piegraph(13, 'hostsessions_graph','Sessions per host', %infos); } print $fh "\n"; } @@ -2116,7 +2116,7 @@ sub dump_as_html $infos{$small[0]} = $infos{"Sum connections < $pie_percentage_limit%"}; delete $infos{"Sum connections < $pie_percentage_limit%"}; } - &flotr2_piegraph(13, 'databaseconnections_graph','Connections per database', %infos); + &flotr2_piegraph(14, 'databaseconnections_graph','Connections per database', %infos); } print $fh "\n"; } @@ -2157,7 +2157,7 @@ sub dump_as_html $infos{$small[0]} = $infos{"Sum connections < $pie_percentage_limit%"}; delete $infos{"Sum connections < $pie_percentage_limit%"}; } - &flotr2_piegraph(14, 'userconnections_graph','Connections per user', %infos); + &flotr2_piegraph(15, 'userconnections_graph','Connections per user', %infos); } print $fh "\n"; } @@ -2199,7 +2199,7 @@ sub dump_as_html $infos{$small[0]} = $infos{"Sum connections < $pie_percentage_limit%"}; delete $infos{"Sum connections < $pie_percentage_limit%"}; } - &flotr2_piegraph(15, 'hostconnections_graph','Connections per host', %infos); + &flotr2_piegraph(16, 'hostconnections_graph','Connections per host', %infos); } print $fh "\n"; }