progressbar api

This commit is contained in:
Zack Scholl 2017-10-26 12:30:56 -06:00
parent e3ff37cce8
commit 32a25323c5
1 changed files with 1 additions and 1 deletions

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