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

Function parseNetwork

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

Source from the content-addressed store, hash-verified

78}
79
80func parseNetwork(v []uint64) (Network, error) {
81 if len(v) != 4 {
82 return Network{}, fmt.Errorf("invalid Network line %v", v)
83 }
84
85 return Network{
86 NetCount: v[0],
87 UDPCount: v[1],
88 TCPCount: v[2],
89 TCPConnect: v[3],
90 }, nil
91}
92
93func parseServerRPC(v []uint64) (ServerRPC, error) {
94 if len(v) != 5 {

Callers 2

ParseClientRPCStatsFunction · 0.85
ParseServerRPCStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected