summaryrefslogtreecommitdiff
path: root/vendor/github.com/vbauerster/mpb/v7/internal
diff options
context:
space:
mode:
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2021-08-26 13:21:26 +0000
committerGitHub <noreply@github.com>2021-08-26 13:21:26 +0000
commitf5ce02b227f43feb7a02b09890facf198448621e (patch)
treef7ff84b1f21b6b7a31b166ce8ad77caf0e456b03 /vendor/github.com/vbauerster/mpb/v7/internal
parent6f1faf36da9482c1cc99814772d16125fe9a4e36 (diff)
downloadpodman-f5ce02b227f43feb7a02b09890facf198448621e.tar.gz
podman-f5ce02b227f43feb7a02b09890facf198448621e.tar.bz2
podman-f5ce02b227f43feb7a02b09890facf198448621e.zip
Bump github.com/containers/image/v5 from 5.15.2 to 5.16.0
Bumps [github.com/containers/image/v5](https://github.com/containers/image) from 5.15.2 to 5.16.0. - [Release notes](https://github.com/containers/image/releases) - [Commits](https://github.com/containers/image/compare/v5.15.2...v5.16.0) --- updated-dependencies: - dependency-name: github.com/containers/image/v5 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Diffstat (limited to 'vendor/github.com/vbauerster/mpb/v7/internal')
-rw-r--r--vendor/github.com/vbauerster/mpb/v7/internal/percentage.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/vbauerster/mpb/v7/internal/percentage.go b/vendor/github.com/vbauerster/mpb/v7/internal/percentage.go
index a8ef8be12..4bc36f5ba 100644
--- a/vendor/github.com/vbauerster/mpb/v7/internal/percentage.go
+++ b/vendor/github.com/vbauerster/mpb/v7/internal/percentage.go
@@ -3,7 +3,7 @@ package internal
import "math"
// Percentage is a helper function, to calculate percentage.
-func Percentage(total, current int64, width int) float64 {
+func Percentage(total, current int64, width uint) float64 {
if total <= 0 {
return 0
}
@@ -14,6 +14,6 @@ func Percentage(total, current int64, width int) float64 {
}
// PercentageRound same as Percentage but with math.Round.
-func PercentageRound(total, current int64, width int) float64 {
+func PercentageRound(total, current int64, width uint) float64 {
return math.Round(Percentage(total, current, width))
}