Fix peer info.

This commit is contained in:
Andrew Resch 2008-03-30 08:40:53 +00:00
parent f5a9c5a11f
commit 0ee52a17fe

View File

@ -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
})