mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 13:05:37 +00:00
peers change
This commit is contained in:
parent
2c6b146ae6
commit
be897f8ec1
@ -613,9 +613,7 @@ static PyObject *torrent_get_torrent_state(PyObject *self, PyObject *args)
|
|||||||
|
|
||||||
long connected_seeds = 0;
|
long connected_seeds = 0;
|
||||||
for (unsigned long i = 0; i < peers.size(); i++)
|
for (unsigned long i = 0; i < peers.size(); i++)
|
||||||
if ( peers[i].seed && !(peers[i].flags&
|
if (peers[i].flags&(peer_info::seed)) connected_seeds++;
|
||||||
(peer_info::handshake|peer_info::connecting|peer_info::queued)) )
|
|
||||||
connected_seeds++;
|
|
||||||
|
|
||||||
long connected_peers = s.num_peers - connected_seeds;
|
long connected_peers = s.num_peers - connected_seeds;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user