Commit 098d67f8 authored by Geoff Simmons's avatar Geoff Simmons

PH min stats are 0 if there were no collision buckets.

parent d7367746
...@@ -477,6 +477,10 @@ PH_Stats(const struct ph * const restrict ph, ...@@ -477,6 +477,10 @@ PH_Stats(const struct ph * const restrict ph,
((double)nstrings - stats->h2strings_avg) ((double)nstrings - stats->h2strings_avg)
/ (double)stats->collisions; / (double)stats->collisions;
} }
if (stats->h2buckets_min == UINT64_MAX)
stats->h2buckets_min = 0;
if (stats->h2strings_min == UINT64_MAX)
stats->h2strings_min = 0;
} }
void void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment