]> granicus.if.org Git - pgbadger/commitdiff
Update pgbadger
authorwmorancfi <william.moran@intermedix.com>
Fri, 4 Apr 2014 19:39:52 +0000 (15:39 -0400)
committerwmorancfi <william.moran@intermedix.com>
Fri, 4 Apr 2014 19:39:52 +0000 (15:39 -0400)
Make it possible to do --sample 0 (prior it was falling back to the default of 3)

pgbadger

index 385d3f9307ebae6bbd28a6adf118f6491fbcd729..52afba495207a29aa077981709e6ed170f901e4d 100755 (executable)
--- a/pgbadger
+++ b/pgbadger
@@ -113,7 +113,7 @@ my @exclude_user            = ();
 my @exclude_appname         = ();
 my $ident                   = '';
 my $top                     = 0;
-my $sample                  = 0;
+my $sample                  = 3;
 my $extension               = '';
 my $maxlength               = 0;
 my $graph                   = 1;
@@ -337,9 +337,6 @@ if ($format eq 'syslog2') {
 # Set default top query
 $top ||= 20;
 
-# Set the default number of samples
-$sample ||= 3;
-
 # Set the default extension and output format
 if (!$extension) {
        if ($outfile =~ /\.bin/i) {