Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
R
railgun-routing-server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
railgun-routing-server
Commits
c6f5d518
Commit
c6f5d518
authored
Aug 28, 2022
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
af0a82b6
Pipeline
#16084
passed with stages
in 1 minute and 33 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
web/src/app/Quality.ts
web/src/app/Quality.ts
+2
-2
web/src/app/dashboard/dashboard.component.ts
web/src/app/dashboard/dashboard.component.ts
+0
-6
No files found.
web/src/app/Quality.ts
View file @
c6f5d518
import
{
PeerQuality
}
from
"
./api.service
"
;
import
{
PeerQuality
}
from
'
./api.service
'
;
export
class
Quality
{
static
unreachable
=
new
Quality
(
0
,
0
,
0
,
0
);
...
...
@@ -16,7 +16,7 @@ export class Quality {
}
concatPeer
(
quality
?:
PeerQuality
):
Quality
{
if
(
!
quality
)
return
Quality
.
unreachable
if
(
!
quality
)
return
this
.
concatQuality
(
Quality
.
unreachable
);
return
this
.
concat
(
quality
.
delay
,
quality
.
jitter
,
quality
.
reliability
,
0
,
1
);
}
...
...
web/src/app/dashboard/dashboard.component.ts
View file @
c6f5d518
...
...
@@ -45,7 +45,6 @@ export class DashboardComponent implements OnInit {
};
}
else
{
const
link
=
this
.
api
.
connections
[
from
.
id
]?.[
toId
];
console
.
log
(
link
);
if
(
!
link
)
return
;
if
(
!
to
.
peers
[
from
.
id
])
return
;
...
...
@@ -75,11 +74,6 @@ export class DashboardComponent implements OnInit {
this
.
displayedColumns
=
[
'
name
'
,
'
id
'
].
concat
(
this
.
api
.
routers
.
map
(
r
=>
r
.
name
));
}
value
(
from
:
number
,
to
:
number
)
{
//
// element.peers[id]?.delay
}
trackById
(
index
:
number
,
item
:
any
)
{
return
index
;
}
...
...
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