mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
In statsdialog.cpp fix initialization iEnd
This commit is contained in:
parent
659fa242e2
commit
9b77d1f9f3
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ void StatsDialog::updateUI() {
|
||||||
// num_peers is not reliable (adds up peers, which didn't even overcome tcp handshake)
|
// num_peers is not reliable (adds up peers, which didn't even overcome tcp handshake)
|
||||||
const std::vector<libtorrent::torrent_handle> torrents = session->getTorrents();
|
const std::vector<libtorrent::torrent_handle> torrents = session->getTorrents();
|
||||||
std::vector<libtorrent::torrent_handle>::const_iterator iBegin = torrents.begin();
|
std::vector<libtorrent::torrent_handle>::const_iterator iBegin = torrents.begin();
|
||||||
std::vector<libtorrent::torrent_handle>::const_iterator iEnd = torrents.begin();
|
std::vector<libtorrent::torrent_handle>::const_iterator iEnd = torrents.end();
|
||||||
quint32 peers = 0;
|
quint32 peers = 0;
|
||||||
for ( ; iBegin < iEnd ; ++iBegin)
|
for ( ; iBegin < iEnd ; ++iBegin)
|
||||||
peers += (*iBegin).status().num_peers;
|
peers += (*iBegin).status().num_peers;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue