From: Darold Gilles Date: Mon, 27 Jan 2014 15:46:35 +0000 (+0100) Subject: Fix case where queries and events was not updated when using -b and -e command line... X-Git-Tag: v5.0~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c605548a2060109513db92ddb48f19808d4d9d4;p=pgbadger Fix case where queries and events was not updated when using -b and -e command line. Thanks to Nicolas Thauvin for the report. --- diff --git a/pgbadger b/pgbadger index f64b55d..08f6b38 100755 --- a/pgbadger +++ b/pgbadger @@ -1480,7 +1480,7 @@ sub process_file $old_errors_count = $overall_stat{'errors_number'}; $cursize = 0; } - $getout = 1; + $getout = 2; last; } @@ -1617,7 +1617,7 @@ sub process_file $old_errors_count = $overall_stat{'errors_number'}; $cursize = 0; } - $getout = 1; + $getout = 2; last; } @@ -1738,7 +1738,7 @@ sub process_file $old_errors_count = $overall_stat{'errors_number'}; $cursize = 0; } - $getout = 1; + $getout = 2; last; } @@ -1840,7 +1840,7 @@ sub process_file } } - if ($progress && !$getout) { + if ($progress && ($getout != 1)) { if (!$tmpoutfile) { if ($totalsize) { if (($stop_offset > 0) && ($format ne 'csv')) {