Skip to content

Commit 5ca9c27

Browse files
committed
sbn::crt::ts1() fixed
1 parent fba765a commit 5ca9c27

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sbnobj/Common/CRT/CRTHit.hh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ namespace sbn::crt {
4747
CRTHit() {}
4848

4949
int64_t ts0() const { return static_cast<int64_t>(ts0_s) * 1'000'000'000LL + static_cast<int64_t>(ts0_ns); }
50-
int64_t ts1() const { return static_cast<int64_t>(ts0_s) * 1'000'000'000LL + static_cast<int64_t>(ts1_ns); }
50+
// T1 is a relative time not a timestamp, so we don't need second-part.
51+
// nano-second part is enough and we saved entire time there.
52+
int64_t ts1() const { return static_cast<int64_t>(ts1_ns); }
5153

5254
};
5355

0 commit comments

Comments
 (0)