MCPcopy Create free account
hub / github.com/prometheus/procfs / parseServerV4Stats

Function parseServerV4Stats

nfs/parse.go:257–267  ·  view source on GitHub ↗
(v []uint64)

Source from the content-addressed store, hash-verified

255}
256
257func parseServerV4Stats(v []uint64) (ServerV4Stats, error) {
258 values := int(v[0])
259 if len(v[1:]) != values || values != 2 {
260 return ServerV4Stats{}, fmt.Errorf("invalid V4Stats line %v", v)
261 }
262
263 return ServerV4Stats{
264 Null: v[1],
265 Compound: v[2],
266 }, nil
267}
268
269func parseV4Ops(v []uint64) (V4Ops, error) {
270 values := int(v[0])

Callers 1

ParseServerRPCStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…