(enable bool, value I)
| 55 | } |
| 56 | |
| 57 | func 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 | |
| 65 | func maybeHumanReadableCount[I constraints.Integer](enable bool, value I) string { |
| 66 | if enable { |
no test coverage detected