Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Tolerate packet loss up to 30% in udp echo tests #7209
Calculations are not accurate enough for small packet numbers.
Use floating point, not integers.
Or use fixed points calculations.
For example, when
packets_recv is 80 and
packets_sent is 100:
1 - (packets_recv / packets_sent)
1 - (80 / 100) which is 1 - (0)
Build number : 2353
Build number : 1977