String returns the string representation of bytes
()
| 28 | |
| 29 | // String returns the string representation of bytes |
| 30 | func (b Bytes) String() string { |
| 31 | return units.CustomSize("%02.1f %s", float64(b), 1024.0, []string{"B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"}) |
| 32 | } |
| 33 | |
| 34 | // BytesPerSecond is the rate in seconds for byte operations |
| 35 | type BytesPerSecond int64 |