mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 20:14:13 +00:00
Show proper units
This commit is contained in:
parent
64b4255b94
commit
c02a647427
@ -22,7 +22,6 @@
|
|||||||
# Boston, MA 02110-1301, USA.
|
# Boston, MA 02110-1301, USA.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
import deluge.component as component
|
import deluge.component as component
|
||||||
import deluge.common
|
import deluge.common
|
||||||
from deluge.ui.client import client
|
from deluge.ui.client import client
|
||||||
@ -91,12 +90,12 @@ class StatusBars(component.Component):
|
|||||||
self.screen.bottombar += " D: %s/s" % self.download
|
self.screen.bottombar += " D: %s/s" % self.download
|
||||||
|
|
||||||
if self.config["max_download_speed"] > -1:
|
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
|
self.screen.bottombar += " U: %s/s" % self.upload
|
||||||
|
|
||||||
if self.config["max_upload_speed"] > -1:
|
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"]:
|
if self.config["dht"]:
|
||||||
self.screen.bottombar += " DHT: %s" % self.dht
|
self.screen.bottombar += " DHT: %s" % self.dht
|
||||||
|
Loading…
x
Reference in New Issue
Block a user