Browse Source

Changed payload functions from int to qlonglong in TorrentHandle class

adaptive-webui-19844
Naikel Aparicio 9 years ago
parent
commit
2a2c947602
  1. 4
      src/core/bittorrent/torrenthandle.cpp
  2. 4
      src/core/bittorrent/torrenthandle.h

4
src/core/bittorrent/torrenthandle.cpp

@ -1055,12 +1055,12 @@ int TorrentHandle::downloadPayloadRate() const @@ -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;
}

4
src/core/bittorrent/torrenthandle.h

@ -254,8 +254,8 @@ namespace BitTorrent @@ -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;

Loading…
Cancel
Save