Skip to content

Commit

Permalink
Replace upload rate with seed ratio in compact mode.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Oddegamra committed Feb 25, 2012
1 parent a0d97e5 commit d468781
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions transmission-remote-cli.py
Expand Up @@ -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 return 3 # number of lines that were used for drawing the list item
else: else:
# Draw ratio in place of upload rate if upload rate = 0
if not torrent['rateUpload']:
self.draw_ratio(torrent, y - 1)

return 1 return 1


def draw_downloadrate(self, torrent, ypos): def draw_downloadrate(self, torrent, ypos):
Expand Down

0 comments on commit d468781

Please sign in to comment.