mirror of https://github.com/aria2/aria2
rename TorrentMan::preUploadedSize to TorrentMan::preUploadLength
parent
6214190108
commit
180153592d
|
@ -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),
|
||||||
preDownloadLength(0), preUploadedSize(0),
|
preDownloadLength(0), preUploadLength(0),
|
||||||
deltaDownload(0), deltaUpload(0),
|
deltaDownload(0), deltaUpload(0),
|
||||||
storeDir("."),
|
storeDir("."),
|
||||||
multiFileTopDir(NULL),
|
multiFileTopDir(NULL),
|
||||||
|
@ -452,7 +452,7 @@ void TorrentMan::read(FILE* file) {
|
||||||
throw new DlAbortEx(strerror(errno));
|
throw new DlAbortEx(strerror(errno));
|
||||||
}
|
}
|
||||||
preDownloadLength = downloadLength;
|
preDownloadLength = downloadLength;
|
||||||
preUploadedSize = uploadLength;
|
preUploadLength = uploadLength;
|
||||||
delete [] savedBitfield;
|
delete [] savedBitfield;
|
||||||
} catch(Exception* ex) {
|
} catch(Exception* ex) {
|
||||||
delete [] savedBitfield;
|
delete [] savedBitfield;
|
||||||
|
|
|
@ -76,7 +76,7 @@ private:
|
||||||
long long int downloadLength;
|
long long int downloadLength;
|
||||||
long long int uploadLength;
|
long long int uploadLength;
|
||||||
long long int preDownloadLength;
|
long long int preDownloadLength;
|
||||||
long long int preUploadedSize;
|
long long int preUploadLength;
|
||||||
int deltaDownload;
|
int deltaDownload;
|
||||||
int deltaUpload;
|
int deltaUpload;
|
||||||
int fileMode;
|
int fileMode;
|
||||||
|
@ -193,7 +193,7 @@ public:
|
||||||
return downloadLength-preDownloadLength;
|
return downloadLength-preDownloadLength;
|
||||||
}
|
}
|
||||||
long long int getSessionUploadedSize() const {
|
long long int getSessionUploadedSize() const {
|
||||||
return uploadLength-preUploadedSize;
|
return uploadLength-preUploadLength;
|
||||||
}
|
}
|
||||||
|
|
||||||
void setFileMode(int mode) {
|
void setFileMode(int mode) {
|
||||||
|
|
Loading…
Reference in New Issue