diff options
author | Evan Martin <martine@danga.com> | 2012-09-07 19:36:16 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-09-07 19:36:16 (GMT) |
commit | 31330231f1955279a6296cf9425a1ea9221919b1 (patch) | |
tree | a9f8cc234c1fdb9e8bef6755b02dfebe8c691c9b /src/ninja.cc | |
parent | cce1b9854832bec89d55ddc2df8d496968b958da (diff) | |
download | Ninja-31330231f1955279a6296cf9425a1ea9221919b1.zip Ninja-31330231f1955279a6296cf9425a1ea9221919b1.tar.gz Ninja-31330231f1955279a6296cf9425a1ea9221919b1.tar.bz2 |
drop special case for msvc bucket count
Calling bucket_count() works locally with MSVC. I wonder if some
other change in the code fixed this.
Diffstat (limited to 'src/ninja.cc')
-rw-r--r-- | src/ninja.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/ninja.cc b/src/ninja.cc index 7585628..fb273be 100644 --- a/src/ninja.cc +++ b/src/ninja.cc @@ -633,12 +633,7 @@ void DumpMetrics(Globals* globals) { printf("\n"); int count = (int)globals->state->paths_.size(); - int buckets = -#ifdef _MSC_VER - (int)globals->state->paths_.comp.bucket_size; -#else - (int)globals->state->paths_.bucket_count(); -#endif + int buckets = (int)globals->state->paths_.bucket_count(); printf("path->node hash load %.2f (%d entries / %d buckets)\n", count / (double) buckets, count, buckets); } |