stat: fix accumulation of latency buckets
authorVincent Fu <vincent.fu@wdc.com>
Thu, 21 Mar 2019 16:45:13 +0000 (12:45 -0400)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Mar 2019 16:53:39 +0000 (10:53 -0600)
commitc5daece64fd56763f264a59965a547433d4da799
tree4a2ff3bdde49a732b077bcab5429c89bbb9c7622
parentd9c50de7c1d95e5c173ac6d7f5b3f0d63131f8b4
stat: fix accumulation of latency buckets

The numbers of buckets for nsec, usec, and msec latencies may differ
from each other. So we need to iterate separately over the three types
of buckets.

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