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

Method EntryID

pkg/statsutil/stats.go:169–176  ·  view source on GitHub ↗
(noTrunc bool)

Source from the content-addressed store, hash-verified

167}
168
169func (s *StatsEntry) EntryID(noTrunc bool) string {
170 if !noTrunc {
171 if len(s.ID) > 12 {
172 return s.ID[:12]
173 }
174 }
175 return s.ID
176}
177
178func (s *StatsEntry) CPUPerc() string {
179 if s.IsInvalid {

Callers 1

RenderEntryFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected