]> granicus.if.org Git - pgbadger/commitdiff
Fix case where queries and events was not updated when using -b and -e command line...
authorDarold Gilles <gilles@darold.net>
Mon, 27 Jan 2014 15:46:35 +0000 (16:46 +0100)
committerDarold Gilles <gilles@darold.net>
Mon, 27 Jan 2014 15:46:35 +0000 (16:46 +0100)
pgbadger

index f64b55d730dedfa172377e9067e9b41c9627fb2a..08f6b387b9ac62df0f00dfa140420b64ada49097 100755 (executable)
--- 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')) {