From 621419010809b7e9e6f4bf2907f5060ca95c3f87 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 31 Mar 2006 15:08:21 +0000 Subject: [PATCH] rename TorrentMan::preDownloadedSize to TorrentMan::preDownloadLength --- src/TorrentMan.cc | 4 ++-- src/TorrentMan.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/TorrentMan.cc b/src/TorrentMan.cc index cb8739a2..f9b06d5b 100644 --- a/src/TorrentMan.cc +++ b/src/TorrentMan.cc @@ -36,7 +36,7 @@ TorrentMan::TorrentMan():bitfield(NULL), peerEntryIdCounter(0), cuidCounter(0), downloadLength(0), uploadLength(0), - preDownloadedSize(0), preUploadedSize(0), + preDownloadLength(0), preUploadedSize(0), deltaDownload(0), deltaUpload(0), storeDir("."), multiFileTopDir(NULL), @@ -451,7 +451,7 @@ void TorrentMan::read(FILE* file) { if(fread(&uploadLength, sizeof(uploadLength), 1, file) < 1) { throw new DlAbortEx(strerror(errno)); } - preDownloadedSize = downloadLength; + preDownloadLength = downloadLength; preUploadedSize = uploadLength; delete [] savedBitfield; } catch(Exception* ex) { diff --git a/src/TorrentMan.h b/src/TorrentMan.h index 4e169769..f57a06a2 100644 --- a/src/TorrentMan.h +++ b/src/TorrentMan.h @@ -75,7 +75,7 @@ private: int cuidCounter; long long int downloadLength; long long int uploadLength; - long long int preDownloadedSize; + long long int preDownloadLength; long long int preUploadedSize; int deltaDownload; int deltaUpload; @@ -190,7 +190,7 @@ public: void setUploadLength(long long int length) { uploadLength = length; } long long int getSessionDownloadedSize() const { - return downloadLength-preDownloadedSize; + return downloadLength-preDownloadLength; } long long int getSessionUploadedSize() const { return uploadLength-preUploadedSize;