MCPcopy Create free account
hub / github.com/containerd/cgroups / Update

Method Update

cgroup1/cpu.go:98–100  ·  view source on GitHub ↗
(path string, resources *specs.LinuxResources)

Source from the content-addressed store, hash-verified

96}
97
98func (c *cpuController) Update(path string, resources *specs.LinuxResources) error {
99 return c.Create(path, resources)
100}
101
102func (c *cpuController) Stat(path string, stats *v1.Metrics) error {
103 f, err := os.Open(filepath.Join(c.Path(path), "cpu.stat"))

Callers

nothing calls this directly

Calls 1

CreateMethod · 0.95

Tested by

no test coverage detected