Skip to content

Commit 7869e4e

Browse files
committed
add bytes to progress bar
1 parent 4565d17 commit 7869e4e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/client.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,11 @@ func (c *Croc) dialUp() (err error) {
428428
c.cs.channel.waitingForRecipient = false
429429
fmt.Print(" ")
430430
}
431-
c.bar = progressbar.NewOptions(c.cs.channel.fileMetaData.Size, progressbar.OptionSetWriter(os.Stderr))
431+
c.bar = progressbar.NewOptions(
432+
c.cs.channel.fileMetaData.Size,
433+
progressbar.OptionSetWriter(os.Stderr),
434+
progressbar.OptionSetBytes(c.cs.channel.fileMetaData.Size),
435+
)
432436
if role == 0 {
433437
fmt.Fprintf(os.Stderr, "\nSending (->%s)...\n", c.cs.channel.Addresses[1])
434438
} else {

0 commit comments

Comments
 (0)