mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 22:17:54 +00:00
parallel: Fixed --bar.
This commit is contained in:
parent
31e86ed9ae
commit
597bae74af
|
@ -1781,7 +1781,7 @@ sub progress {
|
||||||
$eta = sprintf("ETA: %ds Left: %d AVG: %.2fs ", $this_eta, $left, $avgtime);
|
$eta = sprintf("ETA: %ds Left: %d AVG: %.2fs ", $this_eta, $left, $avgtime);
|
||||||
if($opt::bar) {
|
if($opt::bar) {
|
||||||
my $arg = $Global::newest_job ?
|
my $arg = $Global::newest_job ?
|
||||||
$Global::newest_job->{'commandline'}->replace_placeholders([""],0,0) : "";
|
$Global::newest_job->{'commandline'}->replace_placeholders(["\257<\257>"],0,0) : "";
|
||||||
my $bar_text = sprintf("%d%% %d:%d=%ds %s",
|
my $bar_text = sprintf("%d%% %d:%d=%ds %s",
|
||||||
$pctcomplete*100, $completed, $left, $this_eta, $arg);
|
$pctcomplete*100, $completed, $left, $this_eta, $arg);
|
||||||
my $rev = '[7m';
|
my $rev = '[7m';
|
||||||
|
|
Loading…
Reference in a new issue