percentLabel formats a scroll fraction (0..1) as a percentage string.
(frac float64)
| 770 | |
| 771 | // percentLabel formats a scroll fraction (0..1) as a percentage string. |
| 772 | func percentLabel(frac float64) string { |
| 773 | pct := min(max(int(frac*100), 0), 100) |
| 774 | return strconv.Itoa(pct) + "%" |
| 775 | } |
| 776 | |
| 777 | // isLocalConfigRef reports whether ref points at a local agent config file |
| 778 | // (as opposed to a built-in name, OCI image, or URL). |
no outgoing calls