Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
R
railgun-routing-client
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-client
Commits
ff86a96a
Commit
ff86a96a
authored
Aug 20, 2022
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
history
parent
efa5609d
Pipeline
#15931
passed with stages
in 25 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
config/config.json
config/config.json
+1
-0
src/Peer.ts
src/Peer.ts
+2
-2
No files found.
config/config.json
View file @
ff86a96a
...
...
@@ -3,6 +3,7 @@
"server_port"
:
500
,
"port"
:
495
,
"timeout"
:
10
,
"history"
:
100
,
"interval"
:
1000
,
"table"
:
1
,
"proto"
:
250
...
...
src/Peer.ts
View file @
ff86a96a
...
...
@@ -53,11 +53,11 @@ export class Peer implements PeerMessage, PeerQuality, RouterConfig {
this
.
history
.
push
(
undefined
);
}
this
.
history
.
push
(
delay
);
this
.
history
.
splice
(
0
,
this
.
history
.
length
-
config
.
timeout
);
this
.
history
.
splice
(
0
,
this
.
history
.
length
-
config
.
history
);
const
history
=
this
.
history
.
filter
(
s
=>
s
!==
undefined
);
this
.
reliability
=
history
.
length
/
config
.
timeout
;
this
.
reliability
=
history
.
length
/
config
.
history
;
this
.
delay
=
_
.
mean
(
history
)
||
0
;
this
.
seq
=
data
.
seq
;
...
...
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