]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/TrackedOp: Make get_duration get correctly value. 5151/head
authorJianpeng Ma <jianpeng.ma@intel.com>
Wed, 8 Jul 2015 00:31:22 +0000 (08:31 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Wed, 8 Jul 2015 01:01:19 +0000 (09:01 +0800)
commit998fe781977bc84232acb9211af37d64342c4383
treebbee37c9c36e83443e3badc75ad8fa56bba29cf6
parent07a2a131e1c962e409094c01ac3ab40b91633d7f
common/TrackedOp: Make get_duration get correctly value.

For get_duration(), it should return the duration of Op. For ops which in
flight, the duration is the time current time subtrace the
initiated_time. For the completed Ops, it used the last event(done)
subtrace the initiated_time.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/common/TrackedOp.h