mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
commit
22861b42ee
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ func (p *JSONProgress) String() string {
|
|||
}
|
||||
numbersBox = fmt.Sprintf("%8v/%v", current, total)
|
||||
|
||||
if p.Start > 0 && percentage < 50 {
|
||||
if p.Current > 0 && p.Start > 0 && percentage < 50 {
|
||||
fromStart := time.Now().UTC().Sub(time.Unix(int64(p.Start), 0))
|
||||
perEntry := fromStart / time.Duration(p.Current)
|
||||
left := time.Duration(p.Total-p.Current) * perEntry
|
||||
|
|
Loading…
Reference in a new issue