mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 14:07:55 +00:00
Bugfix: sprintf used %d with no matching argument
This commit is contained in:
parent
f085a37a40
commit
0f094ba5b2
10
src/parallel
10
src/parallel
|
@ -153,6 +153,10 @@ files. The arguments can be accessed in the command as B<{1}>
|
||||||
B<{6}> will refer to the line with the same line number from the 6th
|
B<{6}> will refer to the line with the same line number from the 6th
|
||||||
file.
|
file.
|
||||||
|
|
||||||
|
Example: Print the number on the opposing sides of a six sided die.
|
||||||
|
|
||||||
|
B<parallel -a <(seq 6) -a <(seq 6 -1 1) echo>
|
||||||
|
|
||||||
|
|
||||||
=item B<--arg-file-sep> I<sep-str> (beta testing)
|
=item B<--arg-file-sep> I<sep-str> (beta testing)
|
||||||
|
|
||||||
|
@ -3887,7 +3891,7 @@ sub progress {
|
||||||
$header = "Computer:jobs completed";
|
$header = "Computer:jobs completed";
|
||||||
$status = $eta .
|
$status = $eta .
|
||||||
join(" ",map
|
join(" ",map
|
||||||
{ sprintf("%s:%d/%d",
|
{ sprintf("%s:%d",
|
||||||
$sshlogin{$_},
|
$sshlogin{$_},
|
||||||
($Global::host{$_}{'completed'}||0)) }
|
($Global::host{$_}{'completed'}||0)) }
|
||||||
@workers);
|
@workers);
|
||||||
|
@ -3897,7 +3901,7 @@ sub progress {
|
||||||
$header = "Computer:jobs completed";
|
$header = "Computer:jobs completed";
|
||||||
$status = $eta .
|
$status = $eta .
|
||||||
join(" ",map
|
join(" ",map
|
||||||
{ sprintf("%s:%d/%d",
|
{ sprintf("%s:%d",
|
||||||
$workerno{$_},
|
$workerno{$_},
|
||||||
($Global::host{$_}{'completed'}||0)) }
|
($Global::host{$_}{'completed'}||0)) }
|
||||||
@workers);
|
@workers);
|
||||||
|
@ -4396,6 +4400,8 @@ sub read_sshloginfile {
|
||||||
open(IN, $file) || die "Cannot open $file";
|
open(IN, $file) || die "Cannot open $file";
|
||||||
while(<IN>) {
|
while(<IN>) {
|
||||||
chomp;
|
chomp;
|
||||||
|
/^\s*#/ and next;
|
||||||
|
/^\s*$/ and next;
|
||||||
push @Global::sshlogin, $_;
|
push @Global::sshlogin, $_;
|
||||||
}
|
}
|
||||||
close IN;
|
close IN;
|
||||||
|
|
Loading…
Reference in a new issue