LTorrentEngine

Info Hash {{ engine.cache.torrent.info_hash().encode('hex') }}
Download speed {{ int(engine.cache.stat['receive_speed']/1000) }} KB/s
Send speed {{ int(engine.cache.stat['send_speed']/1000) }} KB/s
Total downloaded {{ int(engine.cache.stat['receive_bytes']//1024//1024) }} MB
Total send {{ int(engine.cache.stat['send_bytes']//1024//1024) }} MB
Announcers {% for i in engine.announcers %} {{ i[0] }}
{% end %}
Locks {{ engine.d_piece_conditions.keys() }}
Avegare wait {{ engine.get_avegare_request_wait() }}
Black list {% for i in engine.d_black_peer_list%} {{i[0]}}:{{i[1]}} {% end %}
Good peer len, connection len, active connection len {{len(engine.d_good_peers - engine.d_connection_set)}}, {{len(engine.d_connection_set)}}, {{len(engine.d_active_connections)}}

Pieces status

{% if engine.d_start_stop_pieces[1] > 0 %} {% for i in range(engine.d_start_stop_pieces[0], engine.d_start_stop_pieces[1] + 1) %} {% if engine.d_piece_state[i] == 4 %} {{ i }} {% elif engine.d_piece_state[i] == 1 %} {% if i in engine.d_piece_conditions %} {{ i }} {% else %} {{ i }} {% end %} {% elif engine.d_piece_state[i] == 0 %} {{ i }} {% elif engine.d_piece_state[i] == 2 %} {{ i }} {% end %} {% end %} {% end %}

Active download connections

{% for conn in engine.d_active_connections %} {% end %}
Type IP Port Download speed Upload speed Download piece Wait timeout Ext
{% if conn.is_server %}server{% else %}client{% end %} {% if conn.is_interested %}interested{% else %}passive{% end %} {% if conn.current_task == 0 %} wait {% elif conn.current_task == 1 %} download {% elif conn.current_task == 2 %} check {% end %} {% if conn.c_from %}{{ conn.c_from }}{% end %} {{ conn.client_id }} {{ conn.peername[0] }} {{ conn.peername[1] }} {{ int(conn.stat['receive_speed'])//1024 }} KB/s {{ int(conn.stat['send_speed'])//1024 }} KB/s {{ conn.download_piece_index }}, {{ conn.download_piece_part }} {{ now - conn.start_request_time }} {% for i in conn.ep_ext_map.keys() %} {{i}} {% end %}