diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2014-07-12 16:52:01 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2014-07-12 17:01:46 +0900 |
| commit | 3aaa5a7344ef631998df9a9c2bd6cf4fbca11ac8 (patch) | |
| tree | a2cb25784f084529ca1eac1db2d04bb2fdc2635c /test/PieceTest.cc | |
| parent | 620be59b1e04670fed73f0a914065f7df2ec3535 (diff) | |
Fix file length information in RPC response when length > 2GB is unknown
This commit fixes the bug that aria2.tellStopped RPC method returns
total length and completedLength as 0 when file size is unknown in
advance and turns out > 2GB in the end. This commit and addresses the
performance degradation in this case.
Diffstat (limited to 'test/PieceTest.cc')
| -rw-r--r-- | test/PieceTest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/PieceTest.cc b/test/PieceTest.cc index 3a7c7b17..5dd48f43 100644 --- a/test/PieceTest.cc +++ b/test/PieceTest.cc @@ -67,7 +67,7 @@ void PieceTest::testGetCompletedLength() p.completeBlock(9); p.completeBlock(10); // <-- 100 bytes - CPPUNIT_ASSERT_EQUAL(blockLength*3+100, p.getCompletedLength()); + CPPUNIT_ASSERT_EQUAL((int64_t)(blockLength*3+100), p.getCompletedLength()); } void PieceTest::testFlushWrCache() |
