Correct some display issues with mpb update
This commit is contained in:
parent
a83aedd502
commit
6cbbe7328a
|
@ -24,12 +24,7 @@ func mpbProgress(ftp packer.FilesToPack) *mpbProg {
|
|||
}
|
||||
}
|
||||
|
||||
barStyler := mpb.BarStyle()
|
||||
barStyler.Filler("█")
|
||||
barStyler.Refiller("█")
|
||||
barStyler.Padding("░")
|
||||
barStyler.Tip("█")
|
||||
barStyle := barStyler.Build()
|
||||
barStyle := mpb.BarStyle().Filler("█").Refiller("█").Padding("░").Tip("█").Build()
|
||||
|
||||
mp.p = mpb.New()
|
||||
mp.un.bar = mp.p.MustAdd(int64(mp.un.max),
|
||||
|
@ -124,7 +119,7 @@ func (mp1 *mpbProg1) Decor(stat decor.Statistics) (string, int) {
|
|||
default:
|
||||
s := mp1.cur[0]
|
||||
d := strconv.Itoa(len(mp1.cur) - 1)
|
||||
return aurora.Sprintf(aurora.Green("%s + %d more"), s, d), len(s) + len(d) + 8
|
||||
return aurora.Sprintf(aurora.Green("%s + %s more"), s, d), len(s) + len(d) + 8
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue