prefer PercentageRound as it's used in (*bFiller).Fill
Vladimir Bauer
1 year, 11 months ago
| 60 | 60 |
format = "% d"
|
| 61 | 61 |
}
|
| 62 | 62 |
f := func(s Statistics) string {
|
| 63 | |
p := internal.Percentage(s.Total, s.Current, 100)
|
|
63 |
p := internal.PercentageRound(s.Total, s.Current, 100)
|
| 64 | 64 |
return fmt.Sprintf(format, percentageType(p))
|
| 65 | 65 |
}
|
| 66 | 66 |
return Any(f, wcc...)
|