MCPcopy Create free account
hub / github.com/containers/common / cleanString

Function cleanString

pkg/cgroups/cpu.go:22–24  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

20}
21
22func cleanString(s string) string {
23 return strings.Trim(s, "\n")
24}
25
26func readAcct(ctr *CgroupControl, name string) (uint64, error) {
27 p := filepath.Join(ctr.getCgroupv1Path(CPUAcct), name)

Callers 5

readAcctListFunction · 0.85
StatMethod · 0.85
GetSystemCPUUsageFunction · 0.85
readFileAsUint64Function · 0.85
readFileByKeyAsUint64Function · 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…