diff options
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2021-04-12 09:45:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-12 09:45:08 +0000 |
commit | 3627c4b691a357fc531c2761f07ccfecf937dd12 (patch) | |
tree | efb7643f74beadd946dc052f537743454a076462 /vendor/github.com/vbauerster/mpb/v5/internal | |
parent | 669311d8d8a8881571ccc81ce48b9202b15b9def (diff) | |
download | podman-3627c4b691a357fc531c2761f07ccfecf937dd12.tar.gz podman-3627c4b691a357fc531c2761f07ccfecf937dd12.tar.bz2 podman-3627c4b691a357fc531c2761f07ccfecf937dd12.zip |
Bump github.com/containers/image/v5 from 5.10.5 to 5.11.0
Bumps [github.com/containers/image/v5](https://github.com/containers/image) from 5.10.5 to 5.11.0.
- [Release notes](https://github.com/containers/image/releases)
- [Commits](https://github.com/containers/image/compare/v5.10.5...v5.11.0)
Signed-off-by: dependabot[bot] <support@github.com>
Diffstat (limited to 'vendor/github.com/vbauerster/mpb/v5/internal')
-rw-r--r-- | vendor/github.com/vbauerster/mpb/v5/internal/percentage.go | 18 | ||||
-rw-r--r-- | vendor/github.com/vbauerster/mpb/v5/internal/width.go | 8 |
2 files changed, 0 insertions, 26 deletions
diff --git a/vendor/github.com/vbauerster/mpb/v5/internal/percentage.go b/vendor/github.com/vbauerster/mpb/v5/internal/percentage.go deleted file mode 100644 index e321e0a6b..000000000 --- a/vendor/github.com/vbauerster/mpb/v5/internal/percentage.go +++ /dev/null @@ -1,18 +0,0 @@ -package internal - -import "math" - -// Percentage is a helper function, to calculate percentage. -func Percentage(total, current int64, width int) float64 { - if total <= 0 { - return 0 - } - if current >= total { - return float64(width) - } - return float64(int64(width)*current) / float64(total) -} - -func PercentageRound(total, current int64, width int) float64 { - return math.Round(Percentage(total, current, width)) -} diff --git a/vendor/github.com/vbauerster/mpb/v5/internal/width.go b/vendor/github.com/vbauerster/mpb/v5/internal/width.go deleted file mode 100644 index 35d528983..000000000 --- a/vendor/github.com/vbauerster/mpb/v5/internal/width.go +++ /dev/null @@ -1,8 +0,0 @@ -package internal - -func WidthForBarFiller(reqWidth, available int) int { - if reqWidth <= 0 || reqWidth >= available { - return available - } - return reqWidth -} |