diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-09-10 11:46:43 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-09-10 11:46:43 +0000 |
| commit | 6e7dd1650e4f85a8fc7b942e5310f3c9c6fed626 (patch) | |
| tree | ddfe47ba8e9f1db8abbe215224beb84ea25c51fe /src/AdaptiveFileAllocationIterator.cc | |
| parent | d687886c24eb0d8325e0568f4a6ed304c4011966 (diff) | |
2010-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Make finished() return true only when offset == totalLength.
* src/AdaptiveFileAllocationIterator.cc
* src/SingleFileAllocationIterator.cc
Diffstat (limited to 'src/AdaptiveFileAllocationIterator.cc')
| -rw-r--r-- | src/AdaptiveFileAllocationIterator.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AdaptiveFileAllocationIterator.cc b/src/AdaptiveFileAllocationIterator.cc index d8586384..19010217 100644 --- a/src/AdaptiveFileAllocationIterator.cc +++ b/src/AdaptiveFileAllocationIterator.cc @@ -93,7 +93,7 @@ void AdaptiveFileAllocationIterator::allocateChunk() bool AdaptiveFileAllocationIterator::finished() { if(allocator_.isNull()) { - return (uint64_t)offset_ >= totalLength_; + return (uint64_t)offset_ == totalLength_; } else { return allocator_->finished(); } |
