mirror of
https://github.com/containers/podman.git
synced 2025-10-17 19:24:04 +08:00
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:
6
vendor/github.com/vbauerster/mpb/v8/internal/percentage.go
generated
vendored
6
vendor/github.com/vbauerster/mpb/v8/internal/percentage.go
generated
vendored
@ -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))
|
||||
}
|
||||
|
Reference in New Issue
Block a user