MCPcopy Create free account
hub / github.com/livekit/livekit / SecondsSinceNodeStatsUpdate

Method SecondsSinceNodeStatsUpdate

pkg/routing/node.go:153–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151}
152
153func (l *LocalNodeImpl) SecondsSinceNodeStatsUpdate() float64 {
154 l.lock.RLock()
155 defer l.lock.RUnlock()
156
157 return time.Since(time.Unix(l.node.Stats.UpdatedAt, 0)).Seconds()
158}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected