Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
NTPsec
ntpsec
Commits
97c4e3ef
Commit
97c4e3ef
authored
Aug 08, 2017
by
Gary E. Miller
💬
Browse files
ntpmon: rearrange peer detail a bit
Now the address line usually fits...
parent
e7a4dbfb
Pipeline
#10709011
passed with stages
in 9 minutes and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ntpclients/ntpmon
View file @
97c4e3ef
...
...
@@ -125,8 +125,13 @@ def peer_detail(variables, showunits=False):
vcopy
[
'filtdelay'
]
=
vcopy
[
'filtdelay'
].
replace
(
' '
,
'
\t
'
)
vcopy
[
'filtoffset'
]
=
vcopy
[
'filtoffset'
].
replace
(
' '
,
'
\t
'
)
vcopy
[
'filtdisp'
]
=
vcopy
[
'filtdisp'
].
replace
(
' '
,
'
\t
'
)
# annotate IPv6, to stand out from :port
if
':'
in
vcopy
[
'srcadr'
]:
vcopy
[
'srcadr'
]
=
'['
+
vcopy
[
'srcadr'
]
+
']'
if
':'
in
vcopy
[
'dstadr'
]:
vcopy
[
'dstadr'
]
=
'['
+
vcopy
[
'dstadr'
]
+
']'
peerfmt
=
"""
\
src
adr=%(
src
adr)s
, srcport=%(srcport)d, dst
adr=%(
dst
adr)s
, dstport=%(dst
port)
s
dst
adr=%(
dst
adr)s
:%(dstport)s src
adr=%(
src
adr)s
:%(src
port)
d
leap=%(leap)s
\t
reftime=%(reftime)s
\t
rootdelay=%(rootdelay)s
stratum=%(stratum)2d
\t
rec=%(rec)s
\t
rootdisp=%(rootdisp)s
precision=%(precision)3d
\t
xmt=%(xmt)s
\t
dispersion=%(dispersion)s
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment