MCPcopy
hub / github.com/prometheus/node_exporter / getAdminState

Function getAdminState

collector/netclass_linux.go:178–188  ·  view source on GitHub ↗
(flags *int64)

Source from the content-addressed store, hash-verified

176}
177
178func getAdminState(flags *int64) string {
179 if flags == nil {
180 return "unknown"
181 }
182
183 if *flags&int64(net.FlagUp) == 1 {
184 return "up"
185 }
186
187 return "down"
188}

Callers 1

netClassSysfsUpdateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected