]> granicus.if.org Git - pgbadger/commitdiff
Add report of the current total of queries and events parsed in progress bar. Thanks...
authorDarold Gilles <gilles@darold.net>
Wed, 7 Nov 2012 14:05:43 +0000 (15:05 +0100)
committerDarold Gilles <gilles@darold.net>
Wed, 7 Nov 2012 14:05:43 +0000 (15:05 +0100)
pgbadger

index 09f94c0775d8ea2b6421534177b14b802b507270..46c089bcd8044ac1ede6b5d7f23f34a640efaea2 100755 (executable)
--- a/pgbadger
+++ b/pgbadger
@@ -4098,9 +4098,9 @@ sub progress_bar
        $char  ||= '=';
        my $num_width = length $total;
        sprintf(
-               "[%-${width}s] Parsed %${num_width}s bytes of %s (%.2f%%)\r",
+               "[%-${width}s] Parsed %${num_width}s bytes of %s (%.2f%%), queries: %d, events: %d\r",
                $char x (($width - 1) * $got / $total) . '>',
-               $got, $total, 100 * $got / +$total
+               $got, $total, 100 * $got / +$total, $overall_stat{'queries_number'}, $overall_stat{'errors_number'}
        );
 }