Commit 46f99c82 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(check_one_stat): Fix the value if it has become negative, even if the

	error isn't large enough to fix.
parent 6a9b238c
......@@ -345,7 +345,8 @@ check_one_stat(enum stat_type st,
if (err < 0)
err = -err;
if ((acc < 1 && err > 1e5 * acc)
|| (acc >= 1 && err / acc > 1e-5))
|| (acc >= 1 && err / acc > 1e-5)
|| s->avenrun[f] < 0)
{
/* Don't bother logging assignments to 0. */
if (is_nonzero(acc) || err > 1e-7 * s->max_seen[f])
......
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