HewlettPackard / netperf

Netperf is a benchmark that can be used to measure the performance of many different types of networking. It provides tests for both unidirectional throughput, and end-to-end latency.
MIT License
859 stars 187 forks source link

0 us can be a valid percentile value if you're really fast #50

Open vladcc opened 3 years ago

vladcc commented 3 years ago

Hello,

I stumbled upon this bug the other day. Please refer to my comment in the diff for details. The fix is the least intrusive I could think of, done mainly through text substitution to avoid more bugs by accident. I tested it with gdb, since I couldn't find a test suite to run.

Kind regards, Vlad