Fix have entry removal

pull/709/head
Tatsuhiro Tsujikawa 2016-07-11 01:29:12 +09:00
parent babdcb2c7d
commit 01f870221b
2 changed files with 3 additions and 1 deletions

View File

@ -61,7 +61,7 @@ void HaveEraseCommand::process()
{ {
// we are making a copy of current wallclock. // we are making a copy of current wallclock.
auto expiry = global::wallclock(); auto expiry = global::wallclock();
expiry.advance(5_s); expiry.sub(5_s);
const auto& groups = const auto& groups =
getDownloadEngine()->getRequestGroupMan()->getRequestGroups(); getDownloadEngine()->getRequestGroupMan()->getRequestGroups();

View File

@ -82,6 +82,8 @@ public:
template <typename duration> void advance(const duration& t) { tp_ += t; } template <typename duration> void advance(const duration& t) { tp_ += t; }
template <typename duration> void sub(const duration& t) { tp_ -= t; }
const Clock::time_point& getTime() const { return tp_; } const Clock::time_point& getTime() const { return tp_; }
static Timer zero() { return Timer(0_s); } static Timer zero() { return Timer(0_s); }