MCPcopy Index your code
hub / github.com/tailscale/tailscale / readStatCounter

Function readStatCounter

wgengine/netstack/netstack.go:2157–2163  ·  view source on GitHub ↗
(sc *tcpip.StatCounter)

Source from the content-addressed store, hash-verified

2155}
2156
2157func readStatCounter(sc *tcpip.StatCounter) int64 {
2158 vv := sc.Value()
2159 if vv > math.MaxInt64 {
2160 return int64(math.MaxInt64)
2161 }
2162 return int64(vv)
2163}
2164
2165// ExpVar returns an expvar variable suitable for registering with expvar.Publish.
2166func (ns *Impl) ExpVar() expvar.Var {

Callers 1

ExpVarMethod · 0.85

Calls 1

ValueMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…