Skip to content

Commit

Permalink
prefer PercentageRound as it's used in (*bFiller).Fill
Browse files Browse the repository at this point in the history
  • Loading branch information
vbauerster committed Jul 16, 2024
1 parent cd0bf0f commit a0b327b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decor/percentage.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func NewPercentage(format string, wcc ...WC) Decorator {
format = "% d"
}
f := func(s Statistics) string {
p := internal.Percentage(s.Total, s.Current, 100)
p := internal.PercentageRound(s.Total, s.Current, 100)
return fmt.Sprintf(format, percentageType(p))
}
return Any(f, wcc...)
Expand Down

0 comments on commit a0b327b

Please sign in to comment.