Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
11a0c28d
Commit
11a0c28d
authored
Jun 07, 2017
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
www: add estimated link length to WR Monitoring
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
54089e66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
loadwrinfo.js
userspace/rootfs_override/var/www/js/loadwrinfo.js
+5
-0
No files found.
userspace/rootfs_override/var/www/js/loadwrinfo.js
View file @
11a0c28d
...
...
@@ -63,6 +63,7 @@ function drawtimingtable(data){
var
names
=
[[
"WR time"
,
"TAI"
],[
"Switch time"
,
"UTC"
],[
"Servo state"
,
"ss"
],[
"Round-trip time (mu)"
,
"mu"
],
[
"Master-slave delay"
,
"dms"
],[
"Master PHY delays TX"
,
"dtxm"
],
[
"Master PHY delays RX"
,
"drxm"
],
[
"Slave PHY delays TX"
,
"dtxs"
],[
"Slave PHY delays RX"
,
"drxs"
],
[
"Total link asymmetry"
,
"asym"
],
[
"Estimated link length"
,
"ll"
],
[
"Clock offset"
,
"cko"
],[
"Phase setpoint"
,
"setp"
],[
"Servo update counter"
,
"ucnt"
]];
var
tablewr
=
'<div><table class="altrowstable firstcol" width="100%" id="alternatecolor">'
;
...
...
@@ -87,6 +88,10 @@ function drawtimingtable(data){
tablewr
+=
'<tr><td>'
+
names
[
j
][
0
]
+
'</td><td>'
+
data
[
i
][
1
]
+
' times'
+
'</td></tr>'
;
j
++
;
}
else
if
(
data
[
i
][
0
].
indexOf
(
"ll"
)
>=
0
){
tablewr
+=
'<tr><td>'
+
names
[
j
][
0
]
+
'</td><td>'
+
data
[
i
][
1
]
/
100
+
' m '
+
'</td></tr>'
;
j
++
;
}
else
if
(
data
[
i
][
0
].
indexOf
(
"sv"
)
<
0
&&
data
[
i
][
0
].
indexOf
(
"crtt"
)
<
0
&&
data
[
i
][
0
].
indexOf
(
"lock"
)
<
0
){
tablewr
+=
'<tr><td>'
+
names
[
j
][
0
]
+
'</td><td>'
+
data
[
i
][
1
]
/
1000
+
' nsec'
+
'</td></tr>'
;
j
++
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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