Commit 255e0399 authored by Jean-Claude BAU's avatar Jean-Claude BAU

SNMP: wrsPtpClockOffsetPs correspond to the absolute value of the offset from master

parent 10b922f0
......@@ -2051,7 +2051,7 @@ wrsPtpSyncSource OBJECT-TYPE
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The port name that is currently the synchronization source"
"The interface name that is currently the synchronization source"
::= { wrsPtpDataEntry 9 }
wrsPtpClockOffsetPs OBJECT-TYPE
......@@ -2059,7 +2059,7 @@ wrsPtpClockOffsetPs OBJECT-TYPE
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Current clock offset from master, in picoseconds"
"Absolute value of current clock offset from master, in picoseconds"
::= { wrsPtpDataEntry 10 }
wrsPtpClockOffsetPsHR OBJECT-TYPE
......
......@@ -159,8 +159,9 @@ time_t wrsPtpDataTable_data_fill(unsigned int *n_rows)
}
/* wrsPtpClockOffsetPs */
ptp_a[si].wrsPtpClockOffsetPs =
pp_time_to_picos(&ppsi_servo->offsetFromMaster);
ptp_a[si].wrsPtpClockOffsetPs = pp_time_to_picos(&ppsi_servo->offsetFromMaster);
if ( ptp_a[si].wrsPtpClockOffsetPs<0)
ptp_a[si].wrsPtpClockOffsetPs*=-1;
/* wrsPtpClockOffsetPsHR */
ptp_a[si].wrsPtpClockOffsetPsHR =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment