mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
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 | ||
| ping.8 | ||
| ping.c | ||
| ping.h | ||
| ping6.c | ||
| ping6.h | ||
| utils.c | ||
| utils.h | ||