diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-01-10 18:51:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-10 18:51:08 +0100 |
commit | a957e8c5e237ec1af2eca991bff4d5de31155389 (patch) | |
tree | 29895e0dfd8614930882a579991948218f9c9d3c /vendor/github.com/vbauerster/mpb/v7/bar.go | |
parent | 7a839f7a745ed5171e2a469f6ebec34b5084c3d8 (diff) | |
parent | b7380a7c367246fa50b2380a99dbff39c4dc78d0 (diff) | |
download | podman-a957e8c5e237ec1af2eca991bff4d5de31155389.tar.gz podman-a957e8c5e237ec1af2eca991bff4d5de31155389.tar.bz2 podman-a957e8c5e237ec1af2eca991bff4d5de31155389.zip |
Merge pull request #12786 from vrothberg/vendor-common
vendor c/common
Diffstat (limited to 'vendor/github.com/vbauerster/mpb/v7/bar.go')
-rw-r--r-- | vendor/github.com/vbauerster/mpb/v7/bar.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/vbauerster/mpb/v7/bar.go b/vendor/github.com/vbauerster/mpb/v7/bar.go index d07dc165c..35644a411 100644 --- a/vendor/github.com/vbauerster/mpb/v7/bar.go +++ b/vendor/github.com/vbauerster/mpb/v7/bar.go @@ -165,12 +165,12 @@ func (b *Bar) TraverseDecorators(cb func(decor.Decorator)) { } // SetTotal sets total dynamically. -// If total is less than or equal to zero it takes progress' current value. +// If total is negative it takes progress' current value. func (b *Bar) SetTotal(total int64, triggerComplete bool) { select { case b.operateState <- func(s *bState) { s.triggerComplete = triggerComplete - if total <= 0 { + if total < 0 { s.total = s.current } else { s.total = total |