Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cppla/ServerStatus
/ lossValues
Function
lossValues
web/js/app.js:97–99 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
95
}
96
97
function
lossValues(s){
98
return
[s.ping_10010, s.ping_189, s.ping_10086].map(p => clamp(num(p), 0, 100));
99
}
100
101
function
isBlocked(s){
102
return
lossValues(s).every(p => p >= 100);
Callers
2
isBlocked
Function · 0.85
metrics
Function · 0.85
Calls
2
clamp
Function · 0.85
num
Function · 0.85
Tested by
no test coverage detected