From c0fd772974a0bd9afa2a5570eeca5158b9ddc15c Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Fri, 21 Feb 2014 11:08:35 +0100 Subject: [PATCH] pmc: print cumulativeScaledRateOffset as offset. Signed-off-by: Miroslav Lichvar --- pmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmc.c b/pmc.c index 077991b..65c789c 100644 --- a/pmc.c +++ b/pmc.c @@ -381,7 +381,7 @@ static void pmc_show(struct ptp_message *msg, FILE *fp) IFMT "gmIdentity %s", tsn->master_offset, tsn->ingress_time, - 1.0 + (tsn->cumulativeScaledRateOffset + 0.0) / P41, + (tsn->cumulativeScaledRateOffset + 0.0) / P41, tsn->scaledLastGmPhaseChange, tsn->gmTimeBaseIndicator, tsn->lastGmPhaseChange.nanoseconds_msb,