mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 05:57:54 +00:00
parallel: memfree script sometimes fail: Run it twice.
This commit is contained in:
parent
72ff28f801
commit
68ee1c3f70
|
@ -4247,7 +4247,8 @@ sub memfree_recompute {
|
|||
my $script = memfreescript();
|
||||
|
||||
# TODO add sshlogin and backgrounding
|
||||
$self->{'memfree'} = qx{ $script };
|
||||
# Run it twice if it gives 0
|
||||
$self->{'memfree'} = qx{ $script } || qx{ $script };
|
||||
if(not $self->{'memfree'}) {
|
||||
::die_bug("Less than 1 byte free");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue