StatusSuffix builds the " · 73% pass" status-bar tail; "" before the first snapshot. Rounded to nearest percent so it doesn't jitter on every token.
()
| 89 | // StatusSuffix builds the " · 73% pass" status-bar tail; "" before the first |
| 90 | // snapshot. Rounded to nearest percent so it doesn't jitter on every token. |
| 91 | func (b BudgetStatus) StatusSuffix() string { |
| 92 | if !b.Set { |
| 93 | return "" |
| 94 | } |
| 95 | return fmt.Sprintf(" · %d%% pass", int(b.Remaining*100+0.5)) |
| 96 | } |
| 97 | |
| 98 | // ErrBudgetExhausted maps server 402: the pass is depleted and the user must |
| 99 | // top up before any further request succeeds. |
no outgoing calls