MCPcopy 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
97function lossValues(s){
98 return [s.ping_10010, s.ping_189, s.ping_10086].map(p => clamp(num(p), 0, 100));
99}
100
101function isBlocked(s){
102 return lossValues(s).every(p => p >= 100);

Callers 2

isBlockedFunction · 0.85
metricsFunction · 0.85

Calls 2

clampFunction · 0.85
numFunction · 0.85

Tested by

no test coverage detected