Permalink
Browse files

Keep a CPU free during testing if we have plenty.

  • Loading branch information...
pjcj committed Aug 14, 2010
1 parent b914a2d commit 157b0ca9f8902f3d6976f3975b3b4390fbde224d
Showing with 1 addition and 0 deletions.
  1. +1 −0 all_versions
View
@@ -83,6 +83,7 @@ for my $v (@{$Options->{version}})
{
my $cpus = 1;
eval { chomp ($cpus = `grep -c processor /proc/cpuinfo`); };
+ $cpus-- if $cpus > 3;
$c = "$prove -b -r -j$cpus t";
eval { sys $c, 1 };
next unless $@;

0 comments on commit 157b0ca

Please sign in to comment.