Skip to content

Commit

Permalink
Merge pull request #361 from HeisSpiter/master
Browse files Browse the repository at this point in the history
Check more efficiently for emptiness
  • Loading branch information
evmar committed Jul 15, 2012
2 parents c7a3e30 + df820cf commit 638b033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build.cc
Expand Up @@ -465,7 +465,7 @@ void RealCommandRunner::Abort() {

bool RealCommandRunner::CanRunMore() {
return ((int)subprocs_.running_.size()) < config_.parallelism
&& ((subprocs_.running_.size() == 0 || config_.max_load_average <= 0.0f)
&& ((subprocs_.running_.empty() || config_.max_load_average <= 0.0f)
|| GetLoadAverage() < config_.max_load_average);
}

Expand Down

0 comments on commit 638b033

Please sign in to comment.