fix coordinator dynamic configs

This commit is contained in:
fjy 2014-05-20 13:20:43 -07:00
parent 783f8fcc99
commit f0c40709cd
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ public class CoordinatorDynamicConfig
this.emitBalancingStats = emitBalancingStats; this.emitBalancingStats = emitBalancingStats;
this.balancerComputeThreads = Math.min( this.balancerComputeThreads = Math.min(
Math.max(balancerComputeThreads, 1), Math.max(balancerComputeThreads, 1),
Runtime.getRuntime().availableProcessors() - 1 Math.max(Runtime.getRuntime().availableProcessors() - 1, 1)
); );
} }