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

Function metaFileStats

xfs/parse.go:786–794  ·  view source on GitHub ↗

metaFileStats handles metafile stats.

(us []uint32)

Source from the content-addressed store, hash-verified

784
785// metaFileStats handles metafile stats.
786func metaFileStats(us []uint32) (MetaFileStats, error) {
787 if l := len(us); l < 1 {
788 return MetaFileStats{}, fmt.Errorf("incorrect number of values for metafile stats: %d", l)
789 }
790
791 return MetaFileStats{
792 Inodes: us[0],
793 }, nil
794}
795
796// deferRelogStats handles defer_relog stats.
797func deferRelogStats(us []uint64) (DeferRelogStats, error) {

Callers 1

ParseStatsFunction · 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…