From 640f52c05fcebfdd20a74e875a7e1f095b9f4919 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Wed, 6 Nov 2019 15:30:16 +0800 Subject: [PATCH] Let eta function return signed integer We already use signed integer internally so it make sense to return it as-is. --- src/base/bittorrent/torrenthandle.cpp | 4 ++-- src/base/bittorrent/torrenthandle.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base/bittorrent/torrenthandle.cpp b/src/base/bittorrent/torrenthandle.cpp index 6b0da372d..00caaf88f 100644 --- a/src/base/bittorrent/torrenthandle.cpp +++ b/src/base/bittorrent/torrenthandle.cpp @@ -303,7 +303,7 @@ qlonglong TorrentHandle::totalSize() const return m_torrentInfo.totalSize(); } -// get the size of the torrent without the filtered files +// size without the "don't download" files qlonglong TorrentHandle::wantedSize() const { return m_nativeStatus.total_wanted; @@ -1031,7 +1031,7 @@ qlonglong TorrentHandle::seedingTime() const #endif } -qulonglong TorrentHandle::eta() const +qlonglong TorrentHandle::eta() const { if (isPaused()) return MAX_ETA; diff --git a/src/base/bittorrent/torrenthandle.h b/src/base/bittorrent/torrenthandle.h index 80ce1af9a..6c5c31341 100644 --- a/src/base/bittorrent/torrenthandle.h +++ b/src/base/bittorrent/torrenthandle.h @@ -271,7 +271,7 @@ namespace BitTorrent qlonglong activeTime() const; qlonglong finishedTime() const; qlonglong seedingTime() const; - qulonglong eta() const; + qlonglong eta() const; QVector filesProgress() const; int seedsCount() const; int peersCount() const;