Recent changes (master)
The following changes since commit 1b5e13beb3acc2a08321ce687727e2cbbb3b954f:
Merge branch 'master' of https://github.com/vincentkfu/fio (2020-02-06 12:17:25 -0700)
are available in the Git repository at:
git://git.kernel.dk/fio.git master
for you to fetch changes up to fb34110eac72f01651543095656693f196d895ca:
Merge branch 'div-by-zero' of https://github.com/vincentkfu/fio (2020-02-24 08:23:52 -0700)
----------------------------------------------------------------
Jens Axboe (1):
Merge branch 'div-by-zero' of https://github.com/vincentkfu/fio
Vincent Fu (1):
t/latency_percentiles: avoid division by zero
t/latency_percentiles.py | 5 +++++ 1 file changed, 5 insertions(+)
---
Diff of recent changes:
t/latency_percentiles.py +5 -0
@@ -395,6 +395,11 @@ class FioLatTest(): approximation value of the bin used by fio to store a given latency actual actual latency value """ + + # Avoid a division by zero. The smallest latency values have no error. + if actual == 0: + return approximation == 0 + delta = abs(approximation - actual) / actual return delta <= 1/128