[vendor] iawia002/annie: decrease progress bar refresh rate

This commit is contained in:
Zhiming Wang 2020-02-08 21:29:14 +08:00
parent 81ee0f1dce
commit ae7339907d
No known key found for this signature in database
GPG Key ID: 5B58F95EC95965D8

View File

@ -18,7 +18,7 @@ import (
) )
func progressBar(size int64) *pb.ProgressBar { func progressBar(size int64) *pb.ProgressBar {
bar := pb.New64(size).SetUnits(pb.U_BYTES).SetRefreshRate(time.Millisecond * 10) bar := pb.New64(size).SetUnits(pb.U_BYTES).SetRefreshRate(time.Millisecond * 100)
bar.ShowSpeed = true bar.ShowSpeed = true
bar.ShowFinalTime = true bar.ShowFinalTime = true
bar.SetMaxWidth(1000) bar.SetMaxWidth(1000)