(byte_val)
| 112 | val /= divisor |
| 113 | |
| 114 | def prettyprint_bytes(byte_val): |
| 115 | return prettyprint(byte_val, [' B', ' KB', ' MB', ' GB', ' TB'], 1024.0) |
| 116 | |
| 117 | def prettyprint_units(unit_val): |
| 118 | return prettyprint(unit_val, ["", "K", "M", "B"], 1000.0) |
no test coverage detected