Skip to content

Commit c12821a

Browse files
authored
future publications need to apply as well (#20)
Signed-off-by: Guillaume W. Bres <[email protected]>
1 parent 75d9511 commit c12821a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/processing/time/absolute.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl GnssAbsoluteTime {
6464
})
6565
.min_by_key(|poly| {
6666
let transposed = t.to_time_scale(poly.lhs_timescale);
67-
transposed - poly.ref_epoch
67+
(transposed - poly.ref_epoch).abs()
6868
})
6969
{
7070
Some(
@@ -83,7 +83,7 @@ impl GnssAbsoluteTime {
8383
})
8484
.min_by_key(|poly| {
8585
let transposed = t.to_time_scale(poly.lhs_timescale);
86-
transposed - poly.ref_epoch
86+
(transposed - poly.ref_epoch).abs()
8787
})
8888
{
8989
Some(

0 commit comments

Comments
 (0)