rename TorrentMan::preUploadedSize to TorrentMan::preUploadLength

This commit is contained in:
Tatsuhiro Tsujikawa 2006-03-31 15:11:17 +00:00
parent 6214190108
commit 180153592d
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),
preDownloadLength(0), preUploadedSize(0),
preDownloadLength(0), preUploadLength(0),
deltaDownload(0), deltaUpload(0),
storeDir("."),
multiFileTopDir(NULL),
@ -452,7 +452,7 @@ void TorrentMan::read(FILE* file) {
throw new DlAbortEx(strerror(errno));
}
preDownloadLength = downloadLength;
preUploadedSize = uploadLength;
preUploadLength = uploadLength;
delete [] savedBitfield;
} catch(Exception* ex) {
delete [] savedBitfield;

View File

@ -76,7 +76,7 @@ private:
long long int downloadLength;
long long int uploadLength;
long long int preDownloadLength;
long long int preUploadedSize;
long long int preUploadLength;
int deltaDownload;
int deltaUpload;
int fileMode;
@ -193,7 +193,7 @@ public:
return downloadLength-preDownloadLength;
}
long long int getSessionUploadedSize() const {
return uploadLength-preUploadedSize;
return uploadLength-preUploadLength;
}
void setFileMode(int mode) {