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

Function parseInputOutput

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

Source from the content-addressed store, hash-verified

44}
45
46func parseInputOutput(v []uint64) (InputOutput, error) {
47 if len(v) != 2 {
48 return InputOutput{}, fmt.Errorf("invalid InputOutput line %v", v)
49 }
50
51 return InputOutput{
52 Read: v[0],
53 Write: v[1],
54 }, nil
55}
56
57func parseThreads(v []uint64) (Threads, error) {
58 if len(v) != 2 {

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…