From c8c395dcd894feef977af6e5265b3859e3c8f5c9 Mon Sep 17 00:00:00 2001 From: Vadim Fedorenko Date: Wed, 24 Jan 2024 15:27:00 -0800 Subject: [PATCH] adjust logs to show 1-way delay for each point Summary: Add more info into the log to try to catch some unreasonable spikes Reviewed By: leoleovich Differential Revision: D53051602 fbshipit-source-id: 6f472654ee265183d51f473771dd482bac0c852b --- ptp/sptp/client/sptp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ptp/sptp/client/sptp.go b/ptp/sptp/client/sptp.go index 358603da..0d09c46d 100644 --- a/ptp/sptp/client/sptp.go +++ b/ptp/sptp/client/sptp.go @@ -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 {