From 86f335037553580dd232997d039da386891a3140 Mon Sep 17 00:00:00 2001 From: Sioro Date: Thu, 7 Jul 2016 19:30:47 +0200 Subject: [PATCH] Keep rendering upload speed even if we are finished downloading --- client.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/client.go b/client.go index 58a3cdd..919853b 100644 --- a/client.go +++ b/client.go @@ -215,17 +215,15 @@ func (c *Client) Render() { if c.ReadyForPlayback() { fmt.Printf("Stream: \thttp://localhost:%d\n", c.Port) } - if currentProgress > 0 { fmt.Printf("Progress: \t%s / %s %.2f%%\n", complete, size, c.percentage()) } if currentProgress < t.Info().TotalLength() { fmt.Printf("Download speed: %s\n", downloadSpeed) - if c.Seed { - fmt.Printf("Upload speed: \t%s\n", uploadSpeed) - } } - + if c.Seed { + fmt.Printf("Upload speed: \t%s\n", uploadSpeed) + } } func (c Client) getLargestFile() *torrent.File {