Skip to content

Commit

Permalink
better default stripiness
Browse files Browse the repository at this point in the history
  • Loading branch information
scarytom committed Mar 7, 2012
1 parent 216ebcb commit 22b8bcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/netmelody/panto/StripedJUnitTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void execute() throws BuildException {
parallelTask.setThreadsPerProcessor(1);

if (stripeCount <= 0) {
stripeCount = Runtime.getRuntime().availableProcessors() * 2;
stripeCount = Runtime.getRuntime().availableProcessors();
}
for (int i = 0; i < stripeCount; i++) {
parallelTask.addTask(embeddedJUnitTask.spawnTaskForStripe(i + 1, stripeCount));
Expand Down

0 comments on commit 22b8bcb

Please sign in to comment.