From 32a25323c5515af6176427d475d41c471e5d115d Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Thu, 26 Oct 2017 12:30:56 -0600 Subject: [PATCH] progressbar api --- connect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connect.go b/connect.go index 7fd1c84d..eced9158 100644 --- a/connect.go +++ b/connect.go @@ -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: "))