mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
latest peer/seed try
This commit is contained in:
parent
be897f8ec1
commit
687df9590c
1 changed files with 2 additions and 1 deletions
|
@ -613,7 +613,8 @@ static PyObject *torrent_get_torrent_state(PyObject *self, PyObject *args)
|
|||
|
||||
long connected_seeds = 0;
|
||||
for (unsigned long i = 0; i < peers.size(); i++)
|
||||
if (peers[i].flags&(peer_info::seed)) connected_seeds++;
|
||||
if (peers[i].flags&(peer_info::seed) && !(peers[i].flags&(peer_info::handshake|peer_info::connecting|peer_info::queued)))
|
||||
connected_seeds++;
|
||||
|
||||
long connected_peers = s.num_peers - connected_seeds;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue