Assign global::wallclock instead of calling Timer::reset().

pull/1/head
Tatsuhiro Tsujikawa 2011-06-28 22:30:40 +09:00
parent 5d498cb1ab
commit bd4d3a27b3
3 changed files with 4 additions and 3 deletions

View File

@ -217,7 +217,7 @@ FileEntry::findFasterRequest(const SharedHandle<Request>& base)
SharedHandle<Request> fastestRequest = requestPool_.front();
requestPool_.pop_front();
inFlightRequests_.push_back(fastestRequest);
lastFasterReplace_.reset();
lastFasterReplace_ = global::wallclock;
return fastestRequest;
}
return SharedHandle<Request>();

View File

@ -77,7 +77,7 @@ bool FtpFinishDownloadCommand::execute()
}
try {
if(readEventEnabled() || hupEventEnabled()) {
getCheckPoint().reset();
getCheckPoint() = global::wallclock;
unsigned int status = ftpConnection_->receiveResponse();
if(status == 0) {
getDownloadEngine()->addCommand(this);

View File

@ -33,6 +33,7 @@
*/
/* copyright --> */
#include "PeerAddrEntry.h"
#include "wallclock.h"
namespace aria2 {
@ -61,7 +62,7 @@ PeerAddrEntry& PeerAddrEntry::operator=(const PeerAddrEntry& c)
void PeerAddrEntry::notifyUpdate()
{
lastUpdated_.reset();
lastUpdated_ = global::wallclock;
}
bool PeerAddrEntry::operator==(const PeerAddrEntry& entry) const