BytesPerSecondsString formats the given value bytes per second with the appropriate base-10 suffix (KB/s, MB/s, GB/s, ...)
(bps T)
| 67 | |
| 68 | // BytesPerSecondsString formats the given value bytes per second with the appropriate base-10 suffix (KB/s, MB/s, GB/s, ...) |
| 69 | func BytesPerSecondsString[T realNumber](bps T) string { |
| 70 | //nolint:mnd |
| 71 | return toDecimalUnitString(bps, 1000, base10UnitPrefixes, "B/s") |
| 72 | } |
| 73 | |
| 74 | // Count returns the given number with the appropriate base-10 suffix (K, M, G, ...) |
| 75 | func Count[T constraints.Integer](v T) string { |
no test coverage detected