summaryrefslogtreecommitdiff
path: root/src/TorrentConsoleDownloadEngine.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/TorrentConsoleDownloadEngine.cc')
-rw-r--r--src/TorrentConsoleDownloadEngine.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/TorrentConsoleDownloadEngine.cc b/src/TorrentConsoleDownloadEngine.cc
index f25679b3..52505618 100644
--- a/src/TorrentConsoleDownloadEngine.cc
+++ b/src/TorrentConsoleDownloadEngine.cc
@@ -70,15 +70,15 @@ void TorrentConsoleDownloadEngine::calculateStatistics() {
long long int elapsed = Util::difftv(now, cp[currentCp]);
sessionDownloadSize[0] += torrentMan->getDeltaDownloadLength();
- sessionUploadSize[0] += torrentMan->getDeltaUpload();
+ sessionUploadSize[0] += torrentMan->getDeltaUploadLength();
sessionDownloadSize[1] += torrentMan->getDeltaDownloadLength();
- sessionUploadSize[1] += torrentMan->getDeltaUpload();
+ sessionUploadSize[1] += torrentMan->getDeltaUploadLength();
downloadSpeed = calculateSpeed(sessionDownloadSize[currentCp], elapsed);
uploadSpeed = calculateSpeed(sessionUploadSize[currentCp], elapsed);
torrentMan->resetDeltaDownloadLength();
- torrentMan->resetDeltaUpload();
+ torrentMan->resetDeltaUploadLength();
if(elapsed-lastElapsed >= 1000000) {
printStatistics();