(sc *tcpip.StatCounter)
| 2155 | } |
| 2156 | |
| 2157 | func 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. |
| 2166 | func (ns *Impl) ExpVar() expvar.Var { |