Curtailment: report curtailed percent instead of bool (#32010)

This commit is contained in:
andig 2026-07-21 13:14:40 +02:00 • committed by GitHub
parent 435ed72a56
commit 608aa36629
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 178 additions and 56 deletions

View file

@ -180,8 +180,8 @@ func (d *dumper) Dump(name string, v any) {
if v, ok := api.Cap[api.Curtailer](v); ok {
d.measureTime(w, "Curtailed", func() (string, error) {
curtailed, err := v.Curtailed()
return fmt.Sprintf("%t", curtailed), err
percent, err := v.CurtailedPercent()
return fmt.Sprintf("%d%%", percent), err
})
}