MCPcopy
hub / github.com/kopia/kopia / maybeHumanReadableBytes

Function maybeHumanReadableBytes

cli/show_utils.go:57–63  ·  view source on GitHub ↗
(enable bool, value I)

Source from the content-addressed store, hash-verified

55}
56
57func maybeHumanReadableBytes[I constraints.Integer](enable bool, value I) string {
58 if enable {
59 return units.BytesString(value)
60 }
61
62 return strconv.FormatInt(int64(value), 10)
63}
64
65func maybeHumanReadableCount[I constraints.Integer](enable bool, value I) string {
66 if enable {

Callers 5

printDirectoryEntryMethod · 0.85
runMethod · 0.85
outputLongMethod · 0.85
outputCompressedMethod · 0.85
entryBitsMethod · 0.85

Calls 1

BytesStringFunction · 0.92

Tested by

no test coverage detected