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

Function parseClientRPC

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

Source from the content-addressed store, hash-verified

105}
106
107func parseClientRPC(v []uint64) (ClientRPC, error) {
108 if len(v) != 3 {
109 return ClientRPC{}, fmt.Errorf("invalid RPC line %v", v)
110 }
111
112 return ClientRPC{
113 RPCCount: v[0],
114 Retransmissions: v[1],
115 AuthRefreshes: v[2],
116 }, nil
117}
118
119func parseV2Stats(v []uint64) (V2Stats, error) {
120 values := int(v[0])

Callers 1

ParseClientRPCStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected