Show proper units

This commit is contained in:
Andrew Resch 2009-04-24 22:52:45 +00:00
parent 64b4255b94
commit c02a647427
1 changed files with 2 additions and 3 deletions

View File

@ -22,7 +22,6 @@
# Boston, MA 02110-1301, USA.
#
import deluge.component as component
import deluge.common
from deluge.ui.client import client
@ -91,12 +90,12 @@ class StatusBars(component.Component):
self.screen.bottombar += " D: %s/s" % self.download
if self.config["max_download_speed"] > -1:
self.screen.bottombar += " (%s/s)" % self.config["max_download_speed"]
self.screen.bottombar += " (%s KiB/s)" % self.config["max_download_speed"]
self.screen.bottombar += " U: %s/s" % self.upload
if self.config["max_upload_speed"] > -1:
self.screen.bottombar += " (%s/s)" % self.config["max_upload_speed"]
self.screen.bottombar += " (%s KiB/s)" % self.config["max_upload_speed"]
if self.config["dht"]:
self.screen.bottombar += " DHT: %s" % self.dht