parallel: memfree script sometimes fail: Run it twice.

This commit is contained in:
Ole Tange 2015-11-22 11:15:45 +01:00
parent 72ff28f801
commit 68ee1c3f70

View file

@ -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");
}