fix(deps): update module github.com/vbauerster/mpb/v8 to v8.8.1

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2024-08-16 15:06:28 +00:00
committed by GitHub
parent 670b245b67
commit e2e2763b0e
14 changed files with 192 additions and 222 deletions

View File

@ -14,9 +14,9 @@ func Percentage(total, current, width uint) float64 {
}
// PercentageRound same as Percentage but with math.Round.
func PercentageRound(total, current, width int64) float64 {
if total < 0 || current < 0 || width < 0 {
func PercentageRound(total, current int64, width uint) float64 {
if total < 0 || current < 0 {
return 0
}
return math.Round(Percentage(uint(total), uint(current), uint(width)))
return math.Round(Percentage(uint(total), uint(current), width))
}