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