add bytes to progress bar

This commit is contained in:
Zack Scholl 2018-07-06 05:50:38 -07:00
parent 68d42cdadd
commit db50a7eee0
1 changed files with 5 additions and 1 deletions

View File

@ -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 {