mirror of https://github.com/aria2/aria2
rename TorrentMan::preDownloadedSize to TorrentMan::preDownloadLength
parent
b99ff98e40
commit
6214190108
|
@ -36,7 +36,7 @@
|
||||||
TorrentMan::TorrentMan():bitfield(NULL),
|
TorrentMan::TorrentMan():bitfield(NULL),
|
||||||
peerEntryIdCounter(0), cuidCounter(0),
|
peerEntryIdCounter(0), cuidCounter(0),
|
||||||
downloadLength(0), uploadLength(0),
|
downloadLength(0), uploadLength(0),
|
||||||
preDownloadedSize(0), preUploadedSize(0),
|
preDownloadLength(0), preUploadedSize(0),
|
||||||
deltaDownload(0), deltaUpload(0),
|
deltaDownload(0), deltaUpload(0),
|
||||||
storeDir("."),
|
storeDir("."),
|
||||||
multiFileTopDir(NULL),
|
multiFileTopDir(NULL),
|
||||||
|
@ -451,7 +451,7 @@ void TorrentMan::read(FILE* file) {
|
||||||
if(fread(&uploadLength, sizeof(uploadLength), 1, file) < 1) {
|
if(fread(&uploadLength, sizeof(uploadLength), 1, file) < 1) {
|
||||||
throw new DlAbortEx(strerror(errno));
|
throw new DlAbortEx(strerror(errno));
|
||||||
}
|
}
|
||||||
preDownloadedSize = downloadLength;
|
preDownloadLength = downloadLength;
|
||||||
preUploadedSize = uploadLength;
|
preUploadedSize = uploadLength;
|
||||||
delete [] savedBitfield;
|
delete [] savedBitfield;
|
||||||
} catch(Exception* ex) {
|
} catch(Exception* ex) {
|
||||||
|
|
|
@ -75,7 +75,7 @@ private:
|
||||||
int cuidCounter;
|
int cuidCounter;
|
||||||
long long int downloadLength;
|
long long int downloadLength;
|
||||||
long long int uploadLength;
|
long long int uploadLength;
|
||||||
long long int preDownloadedSize;
|
long long int preDownloadLength;
|
||||||
long long int preUploadedSize;
|
long long int preUploadedSize;
|
||||||
int deltaDownload;
|
int deltaDownload;
|
||||||
int deltaUpload;
|
int deltaUpload;
|
||||||
|
@ -190,7 +190,7 @@ public:
|
||||||
void setUploadLength(long long int length) { uploadLength = length; }
|
void setUploadLength(long long int length) { uploadLength = length; }
|
||||||
|
|
||||||
long long int getSessionDownloadedSize() const {
|
long long int getSessionDownloadedSize() const {
|
||||||
return downloadLength-preDownloadedSize;
|
return downloadLength-preDownloadLength;
|
||||||
}
|
}
|
||||||
long long int getSessionUploadedSize() const {
|
long long int getSessionUploadedSize() const {
|
||||||
return uploadLength-preUploadedSize;
|
return uploadLength-preUploadedSize;
|
||||||
|
|
Loading…
Reference in New Issue