mirror of
https://github.com/schollz/croc.git
synced 2024-11-28 09:35:14 +03:00
progressbar api
This commit is contained in:
parent
e3ff37cce8
commit
32a25323c5
@ -388,7 +388,7 @@ func (c *Connection) runClient() error {
|
||||
fmt.Printf("\n\nReceiving (<-%s)..\n", sendersAddress)
|
||||
}
|
||||
startTime = time.Now()
|
||||
c.bar.Set(c.File.Size)
|
||||
c.bar.SetMax(c.File.Size)
|
||||
c.bar.Reset()
|
||||
if err := c.receiveFile(id, connection); err != nil {
|
||||
log.Error(errors.Wrap(err, "Problem receiving the file: "))
|
||||
|
Loading…
Reference in New Issue
Block a user