Updated to include Physical address, port, and latency

This commit is contained in:
timothyle97 2021-12-19 11:40:02 +00:00
parent cd6699d9b7
commit ade8c3596e
2 changed files with 22 additions and 2 deletions

View file

@ -101,9 +101,9 @@ function NetworkMembers({ network }) {
name: "Peer status",
minWidth: "100px",
cell: (row) =>
(row.online == 0) ? (
(row.online === 0) ? (
<Typography color="error">OFFLINE</Typography>
) : ( (row.online == 1) ? (
) : ( (row.online === 1) ? (
<Typography style={{ color: "#008000" }}>
{"ONLINE (v" +
@ -123,8 +123,25 @@ function NetworkMembers({ network }) {
"." +
row.config.vRev +
")"}
</Typography>
)),
},
{
id: "physicalip",
name: "Physical IP / Latency",
minWidth: "220px",
cell: (row) =>
(row.online === 1) ? (
<p>
{row.physicalAddress +
"/" +
row.physicalPort}<br />{
"(" +
row.latency +
" ms)"}
</p>
) : (""),
},
{
id: "delete",
name: "",