From d134e7986fa104e5253e5bc7d3d4c2c721d12179 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Wed, 25 Oct 2017 09:44:08 -0600 Subject: [PATCH] Shorten the UI bar --- connect.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/connect.go b/connect.go index ec47b97..29f581a 100644 --- a/connect.go +++ b/connect.go @@ -520,6 +520,7 @@ func (c *Connection) receiveFile(id int, connection net.Conn) error { if !c.Debug { c.bars[id] = uiprogress.AddBar(int(chunkSize)/1024 + 1).AppendCompleted().PrependElapsed() + c.bars[id].Width = 40 } logger.Debug("waiting for file") @@ -579,6 +580,7 @@ func (c *Connection) sendFile(id int, connection net.Conn) error { if !c.Debug { logger.Debug("going to show progress") c.bars[id] = uiprogress.AddBar(int(fi.Size())).AppendCompleted().PrependElapsed() + c.bars[id].Width = 40 } // rate limit the bandwidth