stat: use long doubles to identify latency percentiles
authorVincent Fu <vincent.fu@wdc.com>
Tue, 19 Feb 2019 21:44:07 +0000 (16:44 -0500)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Feb 2019 17:55:30 +0000 (10:55 -0700)
commit298d751e5f7dcde630d90a38f9ad5ab6670483a1
tree7d6c9653cd0b839fdaead040194df469a0cf19fb
parent71144e676e710b37966f447ccd8d944813dfa6d1
stat: use long doubles to identify latency percentiles

In some cases, the 100th percentile latency is not correctly identified
because of problems with double precision floating point arithmetic.
Use long doubles instead in the while loop condition to reduce the
likelihood of encountering this problem.

Also, print an error message when latency percentiles are not
successfully identified.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
stat.c