Skip to content

Commit

Permalink
add bytes to progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
schollz committed Jul 6, 2018
1 parent 4565d17 commit 7869e4e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,11 @@ func (c *Croc) dialUp() (err error) {
c.cs.channel.waitingForRecipient = false
fmt.Print(" ")
}
c.bar = progressbar.NewOptions(c.cs.channel.fileMetaData.Size, progressbar.OptionSetWriter(os.Stderr))
c.bar = progressbar.NewOptions(
c.cs.channel.fileMetaData.Size,
progressbar.OptionSetWriter(os.Stderr),
progressbar.OptionSetBytes(c.cs.channel.fileMetaData.Size),
)
if role == 0 {
fmt.Fprintf(os.Stderr, "\nSending (->%s)...\n", c.cs.channel.Addresses[1])
} else {
Expand Down

0 comments on commit 7869e4e

Please sign in to comment.