1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-28 09:35:14 +03:00

progressbar api

This commit is contained in:
Zack Scholl 2017-10-26 12:30:56 -06:00
parent e3ff37cce8
commit 32a25323c5

View File

@ -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: "))