LP Bug #496265: Peers in PeersTab show non-zero download rate when seeding

This commit is contained in:
Calum Lind 2011-07-06 21:33:02 +01:00
parent 7c276f3133
commit 8644bc219a
1 changed files with 2 additions and 2 deletions

View File

@ -482,11 +482,11 @@ class Torrent(object):
ret.append({
"client": client,
"country": country,
"down_speed": peer.down_speed,
"down_speed": peer.payload_down_speed,
"ip": "%s:%s" % (peer.ip[0], peer.ip[1]),
"progress": peer.progress,
"seed": peer.flags & peer.seed,
"up_speed": peer.up_speed,
"up_speed": peer.payload_up_speed,
})
return ret