]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: fix op event duration calculation 42315/head
authorJonas Jelten <jj@sft.lol>
Tue, 13 Jul 2021 17:02:53 +0000 (19:02 +0200)
committerJonas Jelten <jj@sft.lol>
Tue, 13 Jul 2021 17:09:41 +0000 (19:09 +0200)
commit7bc9b2b62d9f140081cee4290912abdf611cf8cf
treeab0f03e75b4096ca475a7413299b326b4ce02d3c
parent37d0e85d101e15c894ad912ec9fcd70ef3d515d9
osd: fix op event duration calculation

Each event is recorded with the timestamp when it's done.
Thus the time the event took is `event_timestamp - prev_event_timestamp`,
and not `next_event_timestamp - event_timestamp`, since that would be the next
event's duration.

This off-by-one is fixed by the patch.

Signed-off-by: Jonas Jelten <jj@sft.lol>
src/osd/OpRequest.cc