Correct some display issues with mpb update

This commit is contained in:
Laurence Withers 2024-05-03 17:14:12 +01:00
parent a83aedd502
commit 6cbbe7328a
1 changed files with 2 additions and 7 deletions

View File

@ -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
}
}