From: Darold Date: Sat, 1 Dec 2012 10:28:33 +0000 (+0100) Subject: Fix multiline progress bar output. X-Git-Tag: v3.2~92 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b5aba285fc846027218d24797cbde7e9850c7fdc;p=pgbadger Fix multiline progress bar output. --- diff --git a/pgbadger b/pgbadger index 03f17b8..99245cf 100755 --- a/pgbadger +++ b/pgbadger @@ -547,9 +547,9 @@ foreach my $logfile (@log_files) { $nlines++; if ($progress && (($nlines % $NUMPROGRESS) == 0)) { if ($totalsize) { - print progress_bar($cursize, $totalsize, 25, '='); + print STDERR &progress_bar($cursize, $totalsize, 25, '='); } else { - print "."; + print STDERR "."; } } @@ -636,9 +636,9 @@ foreach my $logfile (@log_files) { if ($progress && (($nlines % $NUMPROGRESS) == 0)) { if ($totalsize) { - print progress_bar($cursize, $totalsize, 25, '='); + print STDERR &progress_bar($cursize, $totalsize, 25, '='); } else { - print "."; + print STDERR "."; } } @@ -831,7 +831,7 @@ foreach my $logfile (@log_files) { if ($progress) { if ($totalsize) { - print progress_bar($cursize, $totalsize, 25, '='); + print STDERR &progress_bar($cursize, $totalsize, 25, '='); } print STDERR "\n"; }