]> granicus.if.org Git - pgbadger/commitdiff
Fix empty reports when parsing compressed files with the -j option which is not allow...
authorDarold Gilles <gilles@darold.net>
Mon, 4 Nov 2013 20:12:32 +0000 (21:12 +0100)
committerDarold Gilles <gilles@darold.net>
Mon, 4 Nov 2013 20:12:32 +0000 (21:12 +0100)
pgbadger

index 902bce9b4314412dc300f881e5628720b020ec42..893d86684525327d054932c74f39514c3aba116e 100755 (executable)
--- a/pgbadger
+++ b/pgbadger
@@ -8834,10 +8834,7 @@ sub get_log_file
                        $totalsize = `$cmd_file_size`;
                        chomp($totalsize);
                }
-               if ($queue_size) {
-                       $job_per_file = $queue_size;
-                       $queue_size = 0;
-               }
+               $queue_size = 0;
        }
 
        # In list context returns the filehandle and the size of the file
@@ -8870,12 +8867,10 @@ sub split_logfile
                $cmd_file_size =~ s/\%f/$logf/g;
                $totalsize = `$cmd_file_size`;
                chomp($totalsize);
-               if ($queue_size) {
-                       $job_per_file = $queue_size;
-                       $queue_size = 0;
-               }
+               $queue_size = 0;
        } elsif ($logf =~ /\.bz2/i) {
                $totalsize = 0;
+               $queue_size = 0;
        }
 
        return (0, -1) if (!$totalsize);