From: Darold Gilles Date: Fri, 4 May 2012 14:53:05 +0000 (+0200) Subject: Allow download of all pie graphics as images X-Git-Tag: v3.2~246 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=276164ce2ac0a58bb1e372c0f38159f44af14ca4;p=pgbadger Allow download of all pie graphics as images --- diff --git a/pgbadger b/pgbadger index ec06ab8..28ad7ff 100755 --- a/pgbadger +++ b/pgbadger @@ -1262,7 +1262,7 @@ sub dump_as_html } } $data{'Others'} = $total - $totala; - &flotr2_piegraph('queriesbytype_graph','Type of queries', %data); + &flotr2_piegraph(7, 'queriesbytype_graph','Type of queries', %data); } print $fh "\n"; @@ -1310,7 +1310,7 @@ sub dump_as_html $locktype{$small[0]} = $locktype{"Sum types < $pie_percentage_limit%"}; delete $locktype{"Sum types < $pie_percentage_limit%"}; } - &flotr2_piegraph('lockbytype_graph','Type of locks', %locktype); + &flotr2_piegraph(8, 'lockbytype_graph','Type of locks', %locktype); } print $fh "\n"; } @@ -1350,7 +1350,7 @@ sub dump_as_html $infos{$small[0]} = $infos{"Sum sessions < $pie_percentage_limit%"}; delete $infos{"Sum sessions < $pie_percentage_limit%"}; } - &flotr2_piegraph('databasesessions_graph','Sessions per database', %infos); + &flotr2_piegraph(9, 'databasesessions_graph','Sessions per database', %infos); } print $fh "\n"; } @@ -1389,7 +1389,7 @@ sub dump_as_html $infos{$small[0]} = $infos{"Sum sessions < $pie_percentage_limit%"}; delete $infos{"Sum sessions < $pie_percentage_limit%"}; } - &flotr2_piegraph('usersessions_graph','Sessions per user', %infos); + &flotr2_piegraph(10, 'usersessions_graph','Sessions per user', %infos); } print $fh "\n"; } @@ -1429,7 +1429,7 @@ sub dump_as_html $infos{$small[0]} = $infos{"Sum sessions < $pie_percentage_limit%"}; delete $infos{"Sum sessions < $pie_percentage_limit%"}; } - &flotr2_piegraph('hostsessions_graph','Sessions per host', %infos); + &flotr2_piegraph(11, 'hostsessions_graph','Sessions per host', %infos); } print $fh "\n"; } @@ -1472,7 +1472,7 @@ sub dump_as_html $infos{$small[0]} = $infos{"Sum connections < $pie_percentage_limit%"}; delete $infos{"Sum connections < $pie_percentage_limit%"}; } - &flotr2_piegraph('databaseconnections_graph','Connections per database', %infos); + &flotr2_piegraph(12, 'databaseconnections_graph','Connections per database', %infos); } print $fh "\n"; } @@ -1510,7 +1510,7 @@ sub dump_as_html $infos{$small[0]} = $infos{"Sum connections < $pie_percentage_limit%"}; delete $infos{"Sum connections < $pie_percentage_limit%"}; } - &flotr2_piegraph('userconnections_graph','Connections per user', %infos); + &flotr2_piegraph(13, 'userconnections_graph','Connections per user', %infos); } print $fh "\n"; } @@ -1549,7 +1549,7 @@ sub dump_as_html $infos{$small[0]} = $infos{"Sum connections < $pie_percentage_limit%"}; delete $infos{"Sum connections < $pie_percentage_limit%"}; } - &flotr2_piegraph('hostconnections_graph','Connections per host', %infos); + &flotr2_piegraph(14, 'hostconnections_graph','Connections per host', %infos); } print $fh "\n"; } @@ -2219,9 +2219,9 @@ sub flotr2_graph EOF