mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-24 07:40:52 +00:00
4d348e83b7
Avoid calculating the square root of negative zero, which can easily happen on certain architectures when calculating the population standard deviation with a sample size of one, e.g., 0.01 - (0.1 * 0.1) = -0.000000. Avoid returning a NaN by capping the minimum possible variance value to zero (positive). In the future, maybe skip reporting statistics at all for a single sample. Reported by: Jenkins Reviewed by: asomers MFC after: 1 week Pull Request: https://github.com/freebsd/freebsd-src/pull/863 Differential Revision: https://reviews.freebsd.org/D42114 |
||
---|---|---|
.. | ||
tests | ||
main.c | ||
main.h | ||
Makefile | ||
Makefile.depend | ||
Makefile.depend.options | ||
ping6.c | ||
ping6.h | ||
ping.8 | ||
ping.c | ||
ping.h | ||
utils.c | ||
utils.h |