Skip to content

Commit

Permalink
Fixed as per review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
blueelvis committed Aug 10, 2019
1 parent 7fa4e05 commit 42f5b11
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/util/progressbar.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ func (cpb *progressBar) TrackProgress(src string, currentSize, totalSize int64,
if cpb.progress == nil {
cpb.progress = pb.New64(totalSize)
}
tmpl := `{{ string . "filePath" }} {{ bar . "-" "█" (cycle . "↖" "↗" "↘" "↙" ) "." "-"}} {{speed . }} {{percent .}} {{ rtime . " ETA - %s"}} {{ etime . " Elapsed - %s"}}`
p := pb.ProgressBarTemplate(tmpl).Start64(totalSize)
p.Set("filePath", filepath.Base(src))
p := pb.Full.Start64(totalSize)
p.Set("prefix", filepath.Base(src+": "))
p.SetCurrent(currentSize)
p.Set(pb.Bytes, true)

Expand Down

0 comments on commit 42f5b11

Please sign in to comment.