t/latency_percentiles: avoid division by zero
authorVincent Fu <vincent.fu@wdc.com>
Mon, 24 Feb 2020 14:20:46 +0000 (09:20 -0500)
committerVincent Fu <vincent.fu@wdc.com>
Mon, 24 Feb 2020 14:32:58 +0000 (09:32 -0500)
commit9b37832d07f5ac674c1be0abdab298e7621ca97f
tree89d7d47961ab5226cb6aeb421a8381596aba2ffb
parent1b5e13beb3acc2a08321ce687727e2cbbb3b954f
t/latency_percentiles: avoid division by zero

For the smallest latency durations, the actual and approximate values
should be exactly the same. Use this property to avoid a division by
zero when the actual latency value is zero.

Signed-off-by: Vincent Fu <vincent.fu@wdc.com>
t/latency_percentiles.py