(num_bytes: int)
| 341 | |
| 342 | |
| 343 | def format_size(num_bytes: int) -> tuple[str, str]: |
| 344 | pretty_size = human.pretty_size(num_bytes) |
| 345 | style = "gradient_%02d" % int(99 - 100 * min(math.log2(1 + num_bytes) / 20, 0.99)) |
| 346 | return pretty_size, style |
| 347 | |
| 348 | |
| 349 | def format_left_indicators(*, focused: bool, intercepted: bool, timestamp: float): |
no outgoing calls
no test coverage detected
searching dependent graphs…