reorder protocol traffic

This commit is contained in:
Marcos Pinto 2008-11-27 19:34:00 +00:00
parent 1e126995dc
commit 767a35c381
1 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ class StatusBar(component.Component):
self.traffic_item = self.add_item( self.traffic_item = self.add_item(
image=deluge.common.get_pixmap("traffic16.png"), image=deluge.common.get_pixmap("traffic16.png"),
callback=self._on_traffic_item_clicked, callback=self._on_traffic_item_clicked,
tooltip=_("Protocol Traffic Upload/Download")) tooltip=_("Protocol Traffic Download/Upload"))
self.dht_item = StatusBarItem( self.dht_item = StatusBarItem(
image=deluge.common.get_pixmap("dht16.png")) image=deluge.common.get_pixmap("dht16.png"))
@ -344,7 +344,7 @@ class StatusBar(component.Component):
self.upload_item.set_text(label_string) self.upload_item.set_text(label_string)
def update_traffic_label(self): def update_traffic_label(self):
label_string = "%.2f/%.2f KiB/s" % (self.upload_protocol_rate, self.download_protocol_rate) label_string = "%.2f/%.2f KiB/s" % (self.download_protocol_rate, self.upload_protocol_rate)
self.traffic_item.set_text(label_string) self.traffic_item.set_text(label_string)
def update(self): def update(self):