MCPcopy Create free account
hub / github.com/containerd/nerdctl / CPUPerc

Method CPUPerc

pkg/statsutil/stats.go:178–183  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

176}
177
178func (s *StatsEntry) CPUPerc() string {
179 if s.IsInvalid {
180 return "--"
181 }
182 return fmt.Sprintf("%.2f%%", s.CPUPercentage)
183}
184
185func (s *StatsEntry) MemUsage() string {
186 if s.IsInvalid {

Callers 1

RenderEntryFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected