From e027a24206812dd4ad7cf679ba037d25c0f27c74 Mon Sep 17 00:00:00 2001 From: iyear Date: Sun, 4 Sep 2022 19:10:22 +0800 Subject: [PATCH] fix(progress): time in progress precision --- pkg/prog/prog.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/prog/prog.go b/pkg/prog/prog.go index b79fcd6..48d720d 100644 --- a/pkg/prog/prog.go +++ b/pkg/prog/prog.go @@ -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!")