mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 13:05:37 +00:00
Fix peer info.
This commit is contained in:
parent
f5a9c5a11f
commit
0ee52a17fe
@ -238,10 +238,10 @@ class Torrent:
|
||||
num_pieces_complete += 1
|
||||
progress = num_pieces_complete / len(peer.pieces) * 100
|
||||
ret.append({
|
||||
"ip": peer.ip,
|
||||
"ip": "%s:%s" % (peer.ip[0], peer.ip[1]),
|
||||
"up_speed": peer.up_speed,
|
||||
"down_speed": peer.down_speed,
|
||||
"country": peer.country,
|
||||
"country": deluge.xmlrpclib.Binary(peer.country),
|
||||
"client": deluge.xmlrpclib.Binary(peer.client),
|
||||
"progress": progress
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user