]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
obj_bencher: does not accumulate bandwidth that is zero 4151/head
authorDmitry Yatsushkevich <dmitry.yatsushkevich@gmail.com>
Tue, 5 May 2015 21:40:42 +0000 (14:40 -0700)
committerDmitry Yatsushkevich <dmitry.yatsushkevich@gmail.com>
Wed, 6 May 2015 17:29:40 +0000 (10:29 -0700)
commitcd0f2b754dc3cdf1e4f1647dc1cd91d891ce896c
treebd340ed7f3d82919e2ec159832021353f6666ba9
parent2e9e3ba4217151479edc6162a8fe94c5d0dddd10
obj_bencher: does not accumulate bandwidth that is zero

We never want to accumulate a bandwidth that is zero. A bandwidth of
zero means that the object could not be written in one second (or that
it's the first time in the loop). Even if writing an object takes a very
long time, the bandwidth cannot be zero, it will just be very small.

Fix suggested by @dachary
Fixes: #7401
Signed-off-by: Dmitry Yatsushkevich <dmitry.yatsushkevich@gmail.com>
src/common/obj_bencher.cc