From 44c82db9a85dac04ecf74e2de2026091dbdb8566 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Fri, 28 Dec 2007 08:22:59 +0000 Subject: [PATCH] Fix display of speeds in the systemtray tooltip. --- deluge/ui/gtkui/systemtray.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deluge/ui/gtkui/systemtray.py b/deluge/ui/gtkui/systemtray.py index 3d313af2e..a5c915579 100644 --- a/deluge/ui/gtkui/systemtray.py +++ b/deluge/ui/gtkui/systemtray.py @@ -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)