From 9b77d1f9f32a06b95d6b52bac3df0e382b119276 Mon Sep 17 00:00:00 2001 From: Konstantin Goncharik Date: Sun, 5 Jan 2014 19:41:58 +0800 Subject: [PATCH] In statsdialog.cpp fix initialization iEnd --- src/statsdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/statsdialog.cpp b/src/statsdialog.cpp index abf5c6c0e..4f124189f 100644 --- a/src/statsdialog.cpp +++ b/src/statsdialog.cpp @@ -112,7 +112,7 @@ void StatsDialog::updateUI() { // num_peers is not reliable (adds up peers, which didn't even overcome tcp handshake) const std::vector torrents = session->getTorrents(); std::vector::const_iterator iBegin = torrents.begin(); - std::vector::const_iterator iEnd = torrents.begin(); + std::vector::const_iterator iEnd = torrents.end(); quint32 peers = 0; for ( ; iBegin < iEnd ; ++iBegin) peers += (*iBegin).status().num_peers;