MCPcopy Create free account
hub / github.com/encodeous/nylon / Metric

Method Metric

state/endpoint.go:301–307  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

299}
300
301func (u *NylonEndpoint) Metric() uint32 {
302 // if link is dead, return INF
303 if !u.IsActive() {
304 return INF
305 }
306 return DurationToMetric(u.StabilizedPing())
307}
308
309func (u *NylonEndpoint) IsRemote() bool {
310 return u.remoteInit

Callers

nothing calls this directly

Calls 3

IsActiveMethod · 0.95
StabilizedPingMethod · 0.95
DurationToMetricFunction · 0.85

Tested by

no test coverage detected