Rev536, Fix stats page, Support ranged http requests for better video browser compatibility, setHashfield command, One by one send hashfield to connected peers if changed, Keep count hashfield changetime, PeerHashfield optimalizations, Wait for peers on checkmodification, Give more time to query trackers, Do not count udp trackers as error if udp disabled, Test hashfield push
This commit is contained in:
parent
9c5fda6ed2
commit
8e710beab1
9 changed files with 171 additions and 40 deletions
|
@ -135,15 +135,15 @@ class UiRequestPlugin(object):
|
|||
])
|
||||
yield "<tr><td id='peers_%s' style='display: none; white-space: pre'>" % site.address
|
||||
for key, peer in site.peers.items():
|
||||
if peer.last_found:
|
||||
last_found = int(time.time()-peer.last_found)/60
|
||||
if peer.time_found:
|
||||
time_found = int(time.time()-peer.time_found)/60
|
||||
else:
|
||||
last_found = "--"
|
||||
time_found = "--"
|
||||
if peer.connection:
|
||||
connection_id = peer.connection.id
|
||||
else:
|
||||
connection_id = None
|
||||
yield "(#%s, err: %s, found: %s min ago) %22s -<br>" % (connection_id, peer.connection_error, last_found, key)
|
||||
yield "(#%s, err: %s, found: %s min ago) %22s -<br>" % (connection_id, peer.connection_error, time_found, key)
|
||||
yield "<br></td></tr>"
|
||||
yield "</table>"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue