]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
time: Have our time_point and sign the difference too 8103/head
authorAdam C. Emerson <aemerson@redhat.com>
Mon, 14 Mar 2016 20:14:52 +0000 (16:14 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Wed, 16 Mar 2016 15:16:58 +0000 (11:16 -0400)
commit93166300779b30bb4423ce2f316772ea7fb0dfbc
treec35438f3a034b5624e4ce3c8bd51adb9b48f3910
parent60c9bd19c5b7e4b090a2928c56cb56c3a35953a3
time: Have our time_point and sign the difference too

Make operator - between Ceph time points always return a signed duration.

This fixes the underflow pointed out by Kefu Chai <kchai@redhat.com>.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/common/ceph_time.h
src/test/common/test_time.cc