From 2a2c94760248886cc03d3085c19de02f5e21cb6a Mon Sep 17 00:00:00 2001 From: Naikel Aparicio Date: Sun, 25 Oct 2015 14:29:12 -0430 Subject: [PATCH] Changed payload functions from int to qlonglong in TorrentHandle class --- src/core/bittorrent/torrenthandle.cpp | 4 ++-- src/core/bittorrent/torrenthandle.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/bittorrent/torrenthandle.cpp b/src/core/bittorrent/torrenthandle.cpp index 5832dcdaf..d9349d89d 100644 --- a/src/core/bittorrent/torrenthandle.cpp +++ b/src/core/bittorrent/torrenthandle.cpp @@ -1055,12 +1055,12 @@ int TorrentHandle::downloadPayloadRate() const return m_nativeStatus.download_payload_rate; } -int TorrentHandle::totalPayloadUpload() const +qlonglong TorrentHandle::totalPayloadUpload() const { return m_nativeStatus.total_payload_upload; } -int TorrentHandle::totalPayloadDownload() const +qlonglong TorrentHandle::totalPayloadDownload() const { return m_nativeStatus.total_payload_download; } diff --git a/src/core/bittorrent/torrenthandle.h b/src/core/bittorrent/torrenthandle.h index e35d2522c..18cf1a3bd 100644 --- a/src/core/bittorrent/torrenthandle.h +++ b/src/core/bittorrent/torrenthandle.h @@ -254,8 +254,8 @@ namespace BitTorrent qreal realRatio() const; int uploadPayloadRate() const; int downloadPayloadRate() const; - int totalPayloadUpload() const; - int totalPayloadDownload() const; + qlonglong totalPayloadUpload() const; + qlonglong totalPayloadDownload() const; int connectionsCount() const; int connectionsLimit() const; qlonglong nextAnnounce() const;