You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1c81c8b
Browse filesBrowse the repository at this point in the historyBrowse files
fix(tsa): gate on the clock's post-correction error, not the raw offset (#369)
Engine.succeed() stored LastOffset as the offset measured before any
correction, and the TSA clock gate treated that as the clock's current
error. A step corrects the offset down to roughly its root distance plus
half the round-trip delay, but the gate kept judging it by the size of
the correction that was just applied, so a boot step larger than
max_clock_error_ms left every TSA request refused with
timeNotAvailable until the next poll, even though the clock was
already correct.
Add last_sync_error to TimeSyncStatus: for a step, the residual
actually passed to Clock.MarkSynced; for a slew, the full offset
measured, since a slew has not caught up to it yet. ClockGate and
EstimatedClockError now read that field instead of last_offset.
last_offset keeps its old meaning (the pre-correction measurement) for
display.
Refs #364
Signed-off-by: Bugs5382 <12115015+Bugs5382@users.noreply.github.com>
Co-authored-by: Bugs5382 <12115015+Bugs5382@users.noreply.github.com>
0 commit comments