Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #361 from HeisSpiter/master

Check more efficiently for emptiness
  • Loading branch information...
commit 638b0336e98af65240c1d0d66c5e0d9e5b800d9e 2 parents c7a3e30 + df820cf
@martine authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/build.cc
View
2  src/build.cc
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.