mirror of
https://github.com/aria2/aria2.git
synced 2025-01-08 11:01:38 +00:00
rename TorrentMan::preDownloadedSize to TorrentMan::preDownloadLength
This commit is contained in:
parent
b99ff98e40
commit
6214190108
@ -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) {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user