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

Function gcXpcStats

xfs/parse.go:808–816  ·  view source on GitHub ↗

gcXpcStats handles gc xpc stats.

(us []uint64)

Source from the content-addressed store, hash-verified

806
807// gcXpcStats handles gc xpc stats.
808func gcXpcStats(us []uint64) (GcXpcStats, error) {
809 if l := len(us); l != 1 {
810 return GcXpcStats{}, fmt.Errorf("incorrect number of values for XFS gc xpc stats: %d", l)
811 }
812
813 return GcXpcStats{
814 Bytes: us[0],
815 }, nil
816}

Callers 1

ParseStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected