mirror of https://github.com/aria2/aria2
2010-07-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that AdaptiveFileAllocationIterator::getCurrentLength() does not return updated allocated bytes. * src/AdaptiveFileAllocationIterator.hpull/1/head
parent
7958ce4366
commit
4280650e29
|
@ -66,7 +66,11 @@ public:
|
|||
|
||||
virtual off_t getCurrentLength()
|
||||
{
|
||||
return offset_;
|
||||
if(allocator_.isNull()) {
|
||||
return offset_;
|
||||
} else {
|
||||
return allocator_->getCurrentLength();
|
||||
}
|
||||
}
|
||||
|
||||
virtual uint64_t getTotalLength()
|
||||
|
|
Loading…
Reference in New Issue