]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
time: For tests, subtract in the right order
authorAdam C. Emerson <aemerson@redhat.com>
Fri, 11 Mar 2016 23:33:59 +0000 (18:33 -0500)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 15 Mar 2016 04:44:41 +0000 (21:44 -0700)
commit99ee598c9e244a4123055d221bedb1d577b09039
treeb427ff86a2500ff5084cfd67c86365cf14c33dcf
parent1d4c6079e3aca6df085fdbcfd0903da6c9b4ba30
time: For tests, subtract in the right order

This was a bug in the test rather than a bug in the code the test was testing.

Use the ternary operator to replace labs.

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