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

Function parseReplyCache

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

Source from the content-addressed store, hash-verified

18)
19
20func parseReplyCache(v []uint64) (ReplyCache, error) {
21 if len(v) != 3 {
22 return ReplyCache{}, fmt.Errorf("invalid ReplyCache line %v", v)
23 }
24
25 return ReplyCache{
26 Hits: v[0],
27 Misses: v[1],
28 NoCache: v[2],
29 }, nil
30}
31
32func parseFileHandles(v []uint64) (FileHandles, error) {
33 if len(v) != 5 {

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…