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

Function zonedStats

xfs/parse.go:773–783  ·  view source on GitHub ↗

zonedStats handles zoned stats.

(us []uint32)

Source from the content-addressed store, hash-verified

771
772// zonedStats handles zoned stats.
773func zonedStats(us []uint32) (ZonedStats, error) {
774 if l := len(us); l < 3 {
775 return ZonedStats{}, fmt.Errorf("incorrect number of values for zoned stats: %d", l)
776 }
777
778 return ZonedStats{
779 GcReadCalls: us[0],
780 GcWriteCalls: us[1],
781 GcZoneResetCalls: us[2],
782 }, nil
783}
784
785// metaFileStats handles metafile stats.
786func metaFileStats(us []uint32) (MetaFileStats, 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…