diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-07-21 08:56:16 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-07-21 08:56:16 +0000 |
| commit | 6574e44f886740273676b6d73ef754385a36197f (patch) | |
| tree | c13b2c6f1bb178bc5adae67f47549ea6a86d7ec4 /src/DefaultBtProgressInfoFile.cc | |
| parent | cd6b6e359135f88afffbaa31c126489aa9813571 (diff) | |
2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Converted int's to in32_t. long long int's are also converted to
int64_t
Diffstat (limited to 'src/DefaultBtProgressInfoFile.cc')
| -rw-r--r-- | src/DefaultBtProgressInfoFile.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/DefaultBtProgressInfoFile.cc b/src/DefaultBtProgressInfoFile.cc index f0286c52..d8ff303f 100644 --- a/src/DefaultBtProgressInfoFile.cc +++ b/src/DefaultBtProgressInfoFile.cc @@ -70,12 +70,12 @@ void DefaultBtProgressInfoFile::save() { throw string("writeError:bitfield"); } TransferStat stat = peerStorage->calculateStat(); - long long int allTimeDownloadLength = pieceStorage->getCompletedLength(); + int64_t allTimeDownloadLength = pieceStorage->getCompletedLength(); if(fwrite(&allTimeDownloadLength, sizeof(allTimeDownloadLength), 1, file) < 1) { throw string("writeError:download length"); } - long long int allTimeUploadLength = + int64_t allTimeUploadLength = btRuntime->getUploadLengthAtStartup()+ stat.getSessionUploadLength(); if(fwrite(&allTimeUploadLength, @@ -112,12 +112,12 @@ void DefaultBtProgressInfoFile::load() { pieceStorage->setBitfield(savedBitfield, pieceStorage->getBitfieldLength()); // allTimeDownloadLength exists for only a compatibility reason. - long long int allTimeDownloadLength; + int64_t allTimeDownloadLength; if(fread(&allTimeDownloadLength, sizeof(allTimeDownloadLength), 1, file) < 1) { throw string("readError"); } - long long int allTimeUploadLength; + int64_t allTimeUploadLength; if(fread(&allTimeUploadLength, sizeof(allTimeUploadLength), 1, file) < 1) { throw string("readError"); |
