9b2f49166b
Comparing floats with == is bad and I should feel bad I did this. The problem is if something is close to, but not quite the exact same fails tests. I have used an epsilon of 1 because we don't care about accuracy, just that the function works well enough. References: issue procps-ng/procps#271 https://how-to.fandom.com/wiki/Howto_compare_floating_point_numbers_in_the_C_programming_language Signed-off-by: Craig Small <csmall@dropbear.xyz> |
||
---|---|---|
.. | ||
ps | ||
tests | ||
top | ||
free.c | ||
kill.c | ||
pgrep.c | ||
pidof.c | ||
pmap.c | ||
pwdx.c | ||
skill.c | ||
slabtop.c | ||
sysctl.c | ||
tload.c | ||
uptime.c | ||
vmstat.c | ||
w.c | ||
watch.c |