Minor stats fix.
base/statistics.cc: Small fix: don't exit early out of dist when nozero is set and a zero val is found. --HG-- extra : convert_revision : 95ba3328c8a79f05f4c821d99071dba10f013ad6
This commit is contained in:
parent
21c7ee1e3e
commit
73b050a541
1 changed files with 1 additions and 1 deletions
|
@ -846,7 +846,7 @@ DistDisplay(ostream &stream, const string &name, const string &desc,
|
||||||
for (int i = 0; i < size; ++i) {
|
for (int i = 0; i < size; ++i) {
|
||||||
if (flags & nozero && vec[i] == 0.0 ||
|
if (flags & nozero && vec[i] == 0.0 ||
|
||||||
flags & nonan && isnan(vec[i]))
|
flags & nonan && isnan(vec[i]))
|
||||||
return;
|
continue;
|
||||||
|
|
||||||
_min = i * bucket_size + min;
|
_min = i * bucket_size + min;
|
||||||
_pdf = vec[i] / total * 100.0;
|
_pdf = vec[i] / total * 100.0;
|
||||||
|
|
Loading…
Reference in a new issue