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

Method Less

proc_fdinfo.go:129–129  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

127func (p ProcFDInfos) Len() int { return len(p) }
128func (p ProcFDInfos) Swap(i, j int) { p[i], p[j] = p[j], p[i] }
129func (p ProcFDInfos) Less(i, j int) bool { return p[i].FD < p[j].FD }
130
131// InotifyWatchLen returns the total number of inotify watches.
132func (p ProcFDInfos) InotifyWatchLen() (int, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected