Fix translating speed units in status tab when a per-torrent limit is

set
This commit is contained in:
Andrew Resch 2009-01-17 22:02:38 +00:00
parent a69efdfc56
commit 7c349b1fa9

View File

@ -48,7 +48,7 @@ def fpcnt(value):
def fspeed(value, max_value=-1): def fspeed(value, max_value=-1):
if max_value > -1: if max_value > -1:
return "%s [%s _(KiB/s)]" % (deluge.common.fspeed(value), max_value) return "%s [%s %s]" % (deluge.common.fspeed(value), max_value, _("KiB/s"))
else: else:
return deluge.common.fspeed(value) return deluge.common.fspeed(value)