mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-11 19:08:40 +00:00
nice peer data
This commit is contained in:
parent
661ebf4b0f
commit
6793c871da
1 changed files with 8 additions and 5 deletions
|
@ -641,13 +641,16 @@ class DelugeGTK:
|
||||||
if peer['ip'] in curr_ips.keys():
|
if peer['ip'] in curr_ips.keys():
|
||||||
self.peer_store.set(self.peer_store.get_iter_from_string(curr_ips[peer['ip']]),
|
self.peer_store.set(self.peer_store.get_iter_from_string(curr_ips[peer['ip']]),
|
||||||
1, unicode(peer['client'], 'Latin-1'),
|
1, unicode(peer['client'], 'Latin-1'),
|
||||||
2, peer['peer_has'],
|
2, '%.2f%%'%peer["peer_has"],
|
||||||
3, peer['download_speed'],
|
3, dcommon.frate(peer["download_speed"]),
|
||||||
4, peer['upload_speed'])
|
4, dcommon.frate(peer["upload_speed"]))
|
||||||
for peer in new_peer_info:
|
for peer in new_peer_info:
|
||||||
if peer['ip'] not in curr_ips.keys() and peer['client'] is not "":
|
if peer['ip'] not in curr_ips.keys() and peer['client'] is not "":
|
||||||
self.peer_store.append([peer["ip"], unicode(peer["client"], 'Latin-1'), peer["peer_has"],
|
self.peer_store.append([peer["ip"],
|
||||||
peer["download_speed"], peer["upload_speed"]])
|
unicode(peer["client"], 'Latin-1'),
|
||||||
|
'%.2f%%'%peer["peer_has"],
|
||||||
|
dcommon.frate(peer["download_speed"]),
|
||||||
|
dcommon.frate(peer["upload_speed"])])
|
||||||
|
|
||||||
elif tab == 2: #File List
|
elif tab == 2: #File List
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue