From d468781d7c36b9417b12a4bfa57951cfce102b44 Mon Sep 17 00:00:00 2001 From: Moritz Brunner Date: Sat, 25 Feb 2012 19:33:22 +0100 Subject: [PATCH] Replace upload rate with seed ratio in compact mode. If a torrent's upload speed is currently zero, display the seed ratio instead. This seems to be a good compromise between space conservation in compact mode and availability of information, since the upload speed bar would normally be empty when not uploading, thus being largely useless. --- transmission-remote-cli.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/transmission-remote-cli.py b/transmission-remote-cli.py index fe603e4..b00fd07 100755 --- a/transmission-remote-cli.py +++ b/transmission-remote-cli.py @@ -1510,6 +1510,10 @@ def draw_torrentlist_item(self, torrent, focused, compact, y): return 3 # number of lines that were used for drawing the list item else: + # Draw ratio in place of upload rate if upload rate = 0 + if not torrent['rateUpload']: + self.draw_ratio(torrent, y - 1) + return 1 def draw_downloadrate(self, torrent, ypos):