mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-03-10 04:11:16 +00:00
In statsdialog.cpp fix initialization iEnd
This commit is contained in:
parent
8a882e7323
commit
a77a6b5a8b
@ -85,7 +85,7 @@ void StatsDialog::updateUI() {
|
||||
// num_peers is not reliable (adds up peers, which didn't even overcome tcp handshake)
|
||||
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 iEnd = torrents.begin();
|
||||
std::vector<libtorrent::torrent_handle>::const_iterator iEnd = torrents.end();
|
||||
quint32 peers = 0;
|
||||
for ( ; iBegin < iEnd ; ++iBegin)
|
||||
peers += (*iBegin).status().num_peers;
|
||||
|
Loading…
x
Reference in New Issue
Block a user