mirror of
https://github.com/bit1001/tdl.git
synced 2024-12-26 22:54:20 +08:00
fix(progress): time in progress precision
This commit is contained in:
parent
c76d3eb923
commit
e027a24206
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ func New() progress.Writer {
|
|||
pw.Style().Visibility.ETAOverall = false
|
||||
pw.Style().Visibility.Speed = true
|
||||
pw.Style().Visibility.SpeedOverall = true
|
||||
pw.Style().Options.TimeInProgressPrecision = time.Millisecond
|
||||
pw.Style().Options.SpeedOverallFormatter = utils.Byte.FormatBinaryBytes
|
||||
pw.Style().Options.ErrorString = color.RedString("failed!")
|
||||
pw.Style().Options.DoneString = color.GreenString("done!")
|
||||
|
|
Loading…
Reference in a new issue