Skip to content

Commit

Permalink
adjust logs to show 1-way delay for each point
Browse files Browse the repository at this point in the history
Summary: Add more info into the log to try to catch some unreasonable spikes

Reviewed By: leoleovich

Differential Revision: D53051602

fbshipit-source-id: 6f472654ee265183d51f473771dd482bac0c852b
  • Loading branch information
vvfedorenko authored and facebook-github-bot committed Jan 24, 2024
1 parent fba740e commit c8c395d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ptp/sptp/client/sptp.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ func (p *SPTP) processResults(results map[string]*RunResult) {
} else {
freqAdj, state = p.pi.Sample(bmOffset, uint64(bm.Timestamp.UnixNano()))
}
log.Infof("offset %10d s%d freq %+7.0f path delay %10d", bmOffset, state, freqAdj, bmDelay)
log.Infof("offset %10d s%d freq %+7.0f path delay %10d (%6d:%6d)", bmOffset, state, freqAdj, bmDelay, bm.C2SDelay, bm.S2CDelay)
switch state {
case servo.StateJump:
if err := p.clock.Step(-1 * bm.Offset); err != nil {
Expand Down

0 comments on commit c8c395d

Please sign in to comment.