Fix display of speeds in the systemtray tooltip.

This commit is contained in:
Andrew Resch 2007-12-28 08:22:59 +00:00
parent c8508c8d15
commit 44c82db9a8
1 changed files with 3 additions and 2 deletions

View File

@ -127,8 +127,9 @@ class SystemTray(component.Component):
msg = '%s\n%s: %s (%s)\n%s: %s (%s)' % (\
_("Deluge Bittorrent Client"), _("Down Speed"), \
client.get_download_rate(), max_download_speed, _("Up Speed"), \
client.get_upload_rate(), max_upload_speed)
deluge.common.fspeed(client.get_download_rate()),
max_download_speed, _("Up Speed"), \
deluge.common.fspeed(client.get_upload_rate()), max_upload_speed)
# Set the tooltip
self.tray.set_tooltip(msg)