MCPcopy
hub / github.com/kopia/kopia / maybeHumanReadableCount

Function maybeHumanReadableCount

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

Source from the content-addressed store, hash-verified

63}
64
65func maybeHumanReadableCount[I constraints.Integer](enable bool, value I) string {
66 if enable {
67 return units.Count(value)
68 }
69
70 return strconv.FormatInt(int64(value), 10)
71}
72
73func formatTimestamp(ts time.Time) string {
74 return convertTimezone(ts).Format("2006-01-02 15:04:05 MST")

Callers 1

runMethod · 0.85

Calls 1

CountFunction · 0.92

Tested by

no test coverage detected