From: Darold Gilles Date: Thu, 21 Mar 2013 22:45:02 +0000 (+0100) Subject: Fix case where stat were multiplied by N when -J was set to N. Thanks to thegnorf... X-Git-Tag: v3.2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=18f52c549006d67ac1691eb7f4659be7760fd185;p=pgbadger Fix case where stat were multiplied by N when -J was set to N. Thanks to thegnorf for the report. --- diff --git a/pgbadger b/pgbadger index a8c911f..1cc5aa5 100755 --- a/pgbadger +++ b/pgbadger @@ -631,7 +631,11 @@ my $global_totalsize = 0; my @given_log_files = ( @log_files ); # log files must be erase when loading stats from binary format -@log_files = () if $format eq 'binary'; +if ($format eq 'binary') { + $queue_size = 1; + $job_per_file = 1; + @log_files = (); +} my $pipe;