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