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

Function parseFileHandles

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

Source from the content-addressed store, hash-verified

30}
31
32func parseFileHandles(v []uint64) (FileHandles, error) {
33 if len(v) != 5 {
34 return FileHandles{}, fmt.Errorf("invalid FileHandles, line %v", v)
35 }
36
37 return FileHandles{
38 Stale: v[0],
39 TotalLookups: v[1],
40 AnonLookups: v[2],
41 DirNoCache: v[3],
42 NoDirNoCache: v[4],
43 }, nil
44}
45
46func parseInputOutput(v []uint64) (InputOutput, error) {
47 if len(v) != 2 {

Callers 1

ParseServerRPCStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected