Skip to content

Add autocorrect_unix_ts option#194

Merged
mjkramer merged 1 commit intodevelopfrom
mjkramer/feature/unix_ts_autocorrect
Jun 18, 2025
Merged

Add autocorrect_unix_ts option#194
mjkramer merged 1 commit intodevelopfrom
mjkramer/feature/unix_ts_autocorrect

Conversation

@mjkramer
Copy link
Member

@mjkramer mjkramer commented Jun 9, 2025

It appears that sometimes a PACMAN's system clock may fall out-of-sync with NTP time. (E.g. IO group 7 at the beginning of the sandbox.) Currently, an event's unix_ts comes from whatever IO group happened to produce the first packet in the event. If that timestamp is wrong, it causes issues with Mx2 matching. To make the unix_ts assignment more robust, the autocorrect_unix_ts option allows all of the PACMEN to "vote" for the unix_ts.

@mjkramer mjkramer requested a review from krwood June 9, 2025 15:55
@mjkramer mjkramer force-pushed the mjkramer/feature/unix_ts_autocorrect branch from e7c6520 to 09cde40 Compare June 10, 2025 03:01
@mjkramer
Copy link
Member Author

Before. Note the wrong unix_ts on event 6, thanks to PACMAN 7, whose system clock was apparently out of sync:

image

After:

image

@krwood
Copy link
Member

krwood commented Jun 18, 2025

@mjkramer and I discussed offline testing an edge case where the PPS occurs in coincidence with a NTP tick. Matt, any updates there?

@mjkramer
Copy link
Member Author

That edge case applies to #195, not this one (which should not have any edge cases). I'll follow up in the other PR.

@krwood
Copy link
Member

krwood commented Jun 18, 2025

Ah right - my fault!

@mjkramer mjkramer merged commit 6ac80f3 into develop Jun 18, 2025
2 checks passed
@mjkramer mjkramer deleted the mjkramer/feature/unix_ts_autocorrect branch June 23, 2025 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants