mirror of
https://github.com/containers/skopeo.git
synced 2025-09-26 04:35:14 +00:00
Update c/image for https://github.com/containers/image/pull/912
This is an unreleased version of c/image, but it is important to to have the test added in in the next commit enforcing as soon as possible. > go get github.com/containers/image/v5@HEAD > make vendor Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
committed by
Valentin Rothberg
parent
42f68c1c76
commit
8f845aac23
3
vendor/github.com/vbauerster/mpb/v5/internal/percentage.go
generated
vendored
3
vendor/github.com/vbauerster/mpb/v5/internal/percentage.go
generated
vendored
@@ -7,6 +7,9 @@ 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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user