summaryrefslogtreecommitdiff
path: root/src/PeerAddrEntry.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-06-28 22:30:40 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-06-28 22:30:40 +0900
commitbd4d3a27b330d53cd27fbb01da22904af496fb16 (patch)
tree922cd4b93efe1f38b7eb84fbb5e57858e86b626c /src/PeerAddrEntry.cc
parent5d498cb1ab70228b60f3ced50e341f71f82a2776 (diff)
Assign global::wallclock instead of calling Timer::reset().
Diffstat (limited to 'src/PeerAddrEntry.cc')
-rw-r--r--src/PeerAddrEntry.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/PeerAddrEntry.cc b/src/PeerAddrEntry.cc
index 27cb3228..087bf118 100644
--- a/src/PeerAddrEntry.cc
+++ b/src/PeerAddrEntry.cc
@@ -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