mirror of
https://github.com/aria2/aria2.git
synced 2026-04-13 08:18:46 +00:00
2010-07-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that AdaptiveFileAllocationIterator::getCurrentLength() does not return updated allocated bytes. * src/AdaptiveFileAllocationIterator.h
This commit is contained in:
@@ -66,7 +66,11 @@ public:
|
||||
|
||||
virtual off_t getCurrentLength()
|
||||
{
|
||||
return offset_;
|
||||
if(allocator_.isNull()) {
|
||||
return offset_;
|
||||
} else {
|
||||
return allocator_->getCurrentLength();
|
||||
}
|
||||
}
|
||||
|
||||
virtual uint64_t getTotalLength()
|
||||
|
||||
Reference in New Issue
Block a user