rename TorrentMan::preDownloadedSize to TorrentMan::preDownloadLength

This commit is contained in:
Tatsuhiro Tsujikawa 2006-03-31 15:08:21 +00:00
parent b99ff98e40
commit 6214190108
2 changed files with 4 additions and 4 deletions

View File

@ -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) {

View File

@ -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;