Fixed info sometimes shortening the ID even when there's enough space.

This commit is contained in:
Asmageddon 2012-03-12 20:05:40 +01:00
parent 8d07a697d3
commit c2b4ccdc77
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ class Command(BaseCommand):
#Shorten the ID if it's necessary. Pretty hacky
#I _REALLY_ should make a nice function for it that can partition and shorten stuff
space_left = cols - strwidth("[s] 100.00% " + status["name"] + " "*3) - 2
if space_left >= len(torrent_id):
if space_left >= len(torrent_id) - 2:
#There's enough space, print it
s += " {!cyan!}%s" % torrent_id
else: