From ecd49148d0266c981099cc97f6468b4235a25ef1 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Tue, 27 Dec 2016 19:36:08 +0800 Subject: [PATCH] Fix webUI used the wrong value. Closes #6232. --- src/webui/btjson.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webui/btjson.cpp b/src/webui/btjson.cpp index 8f8e2eb23..7fa3a9388 100644 --- a/src/webui/btjson.cpp +++ b/src/webui/btjson.cpp @@ -707,9 +707,9 @@ QVariantMap toMap(BitTorrent::TorrentHandle *const torrent) ret[KEY_TORRENT_UPSPEED] = torrent->uploadPayloadRate(); ret[KEY_TORRENT_PRIORITY] = torrent->queuePosition(); ret[KEY_TORRENT_SEEDS] = torrent->seedsCount(); - ret[KEY_TORRENT_NUM_COMPLETE] = torrent->completeCount(); + ret[KEY_TORRENT_NUM_COMPLETE] = torrent->totalSeedsCount(); ret[KEY_TORRENT_LEECHS] = torrent->leechsCount(); - ret[KEY_TORRENT_NUM_INCOMPLETE] = torrent->incompleteCount(); + ret[KEY_TORRENT_NUM_INCOMPLETE] = torrent->totalLeechersCount(); const qreal ratio = torrent->realRatio(); ret[KEY_TORRENT_RATIO] = (ratio > BitTorrent::TorrentHandle::MAX_RATIO) ? -1 : ratio; ret[KEY_TORRENT_STATE] = torrent->state().toString();